Commit graph

1721 commits

Author SHA1 Message Date
Oliver Gugger
df0e86781d
Merge pull request #960 from lightninglabs/nightly-build-master
GitHub: build nightly docker image from master
2025-02-04 05:54:30 -06:00
Oliver Gugger
24fb56c115
GitHub: build nightly docker image from master
With the experimental branch now merged into master, we can remove the
TODO and actually build the nightly images from master.
2025-02-04 11:58:26 +01:00
Oliver Gugger
1ba09c3cf0
Merge pull request #920 from lightninglabs/loop-in-quote-fix
Add lastHop parameter for loop in quotes
2025-01-30 13:21:50 -06:00
Rachel Fish
a1ae2bd495 api+store: Add lastHop parameter for loop in quotes 2025-01-30 11:30:31 -07:00
Oliver Gugger
62e73ff66a
Merge pull request #959 from lightninglabs/0-14-1-rc2
Update tapd and lnd, bump version to v0.14.1-alpha.rc2
2025-01-30 04:51:23 -06:00
Oliver Gugger
7a6e693579
version: bump version to v0.14.1-alpha.rc2 2025-01-30 11:27:50 +01:00
Oliver Gugger
ce262d3284
README+docs: update release notes and README 2025-01-30 11:27:45 +01:00
Oliver Gugger
9faa4a8388
terminal: bump minimum lnd version to v0.18.5-beta
Before, this minimum version was driven by tapd. But we should keep the
minimum required version up to date in litd as well.
2025-01-30 09:41:49 +01:00
Oliver Gugger
a3ff9f23fd
itest: add new strict forwarding test 2025-01-30 09:41:48 +01:00
Oliver Gugger
4761fe34d6
itest: refactor invoice payment helpers 2025-01-30 09:41:48 +01:00
Oliver Gugger
a2229e9f4c
mod: update lnd to latest version 2025-01-30 09:41:47 +01:00
Oliver Gugger
feaa607090
mod: update tapd to latest version 2025-01-30 09:41:22 +01:00
Oliver Gugger
3bf15333ce
itest: fix formatting, use given context everywhere 2025-01-30 09:16:41 +01:00
Oliver Gugger
cc708c3f71
Merge pull request #958 from lightninglabs/dependabot/npm_and_yarn/app/store2-2.14.4
build(deps): bump store2 from 2.14.2 to 2.14.4 in /app
2025-01-30 01:40:40 -06:00
dependabot[bot]
6c6387e278
build(deps): bump store2 from 2.14.2 to 2.14.4 in /app
Bumps [store2](https://github.com/nbubna/store) from 2.14.2 to 2.14.4.
- [Commits](https://github.com/nbubna/store/compare/2.14.2...2.14.4)

---
updated-dependencies:
- dependency-name: store2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-01-29 14:56:24 +00:00
Elle
ac160bb9ad
Merge pull request #953 from ellemouton/sql6Accounts6
[sql-6] accounts: SQL boilerplate and accounts schemas and queries
2025-01-29 16:54:35 +02:00
Elle Mouton
536b41156c
.github: add CI step to run the sqlc check 2025-01-29 16:37:20 +02:00
Elle Mouton
d3db19e2cc
db: SQL boilerplate code
This commit adds the boilerplate code we will need in order to start
using SQL backed stores (namely sqlite and postgres) for our DB backend.

NOTE that this has been copied from the taproot-assets repo.
2025-01-29 16:37:20 +02:00
Elle Mouton
caec0742db
db/sqlc: add account related tables and queries
This commit also contains the sqlc.yaml file, the `make sqlc` command
and the script for generating sqlc code. This must be done in this
commit as the script only works if there are queries to generate from.
2025-01-29 16:37:20 +02:00
Oliver Gugger
09c1c16fb7
Merge pull request #952 from lightninglabs/dep-update
Update faraday to v0.2.14-alpha
2025-01-23 05:41:31 -06:00
Oliver Gugger
6040a21d1e
README+docs: update release notes and README 2025-01-23 12:24:00 +01:00
Oliver Gugger
396b898acf
Merge pull request #951 from lightninglabs/compilation-fix
GitHub+accounts: fix i386 compilation issue
2025-01-23 05:18:19 -06:00
Oliver Gugger
415e589c63
GitHub: cancel jobs for previous pushes of PR
This takes over two more settings we have in the lnd repo. The first is
to cancel existing CI runs for the same PR if it is pushed again before
the previous run has completed.

The second is just for consistency, to make sure all shells are bash
shells.
2025-01-23 10:15:43 +01:00
Oliver Gugger
2f72da0490
GitHub: fix permission denied in lint CI step
This attempts to fix the following error that sometimes occurs on the
GitHub runners:

 go: github.com/lightninglabs/lightning-terminal imports
	github.com/lightningnetwork/lnd/kvdb imports
	github.com/lightningnetwork/lnd/kvdb/etcd imports
	go.etcd.io/etcd/server/v3/embed: mkdir /home/runner/go/pkg/mod/cache/download/go.etcd.io/etcd/server: permission denied

The suspicion is that the lint step that runs as root within docker
changes the permissions of some of the module cache directories.
So by simply changing the order of operations, this should be fixed.
2025-01-23 10:10:56 +01:00
Oliver Gugger
1657584eb9
accounts: fix compilation issue for i386 systems
Apparently the %d formatting directive implicitly uses `int` as its data
type, which on i386 systems is int32. So the value math.MaxInt64
overflows that value, which causes the compilation to fail.
2025-01-23 10:07:10 +01:00
Elle
91bc912201
Merge pull request #941 from ellemouton/sql4Accounts4
[sql-4] accounts: remove last usages of `UpdateAccount`
2025-01-23 11:05:00 +02:00
Oliver Gugger
380f2f3c8f
mod: update to latest faraday version 2025-01-23 09:29:22 +01:00
Oliver Gugger
4a3a628b83
GitHub: add Golang cross compilation check 2025-01-23 09:26:40 +01:00
Oliver Gugger
f8881cc1a5
GitHub: add key-prefix and use-build-cache to setup-go action
This allows us to control the cache key and whether we want to cache the
Go build cache (which can grow very large).
2025-01-23 09:18:06 +01:00
Oliver Gugger
474080fa31
GitHub: update actions/checkout to v4 2025-01-23 09:18:05 +01:00
Elle Mouton
ef78bc4d9d
accounts: assert no startup error in tests
In the case where no startup error is expected, we should assert that no
error is returned from Start.
2025-01-23 09:20:09 +02:00
Elle Mouton
957c9a3a52
accounts: remove UpdateAccount and last usages
We remove the last few calls to UpdateAccount from the
TestAccountService test. Previously, the UpdateAccount call was used in
this test to also _insert_ new accounts and to force the account ID to
be set to specific values. So here we need to instead call the store's
NewAccount method to insert a new account, then we get the AccountID
from the returned value and we need to then use this returned ID (which
is no longer forceable) in the remainder of the tests.
2025-01-23 09:20:09 +02:00
Elle Mouton
e965f4f6af
accounts: remove UpdateAccount calls from store_test
Remove the call to UpdateAccount from the TestAccountStore test and
instead replace it with all the other calls we have added.
2025-01-23 09:20:09 +02:00
Elle Mouton
8b1c9a2893
accounts: revert UpdateAccountBalanceAndExpiry balance type to be int64
In our mission to replace UpdateAccount, we need
UpdatAccountBalanceAndExpiry to take a negative balance so that we can
use it to replace the behaviour of UpdateAccount as it stands today.
2025-01-23 09:00:49 +02:00
Elle
272416100c
Merge pull request #944 from ellemouton/sql5Accounts5
[sql-5] accounts: use clock.Clock
2025-01-23 08:58:09 +02:00
Elle Mouton
42a4c826cf
accounts: use clock.Clock
In this commit, we use the clock.Clock type instead of directly calling
time.Now().
2025-01-23 08:24:21 +02:00
Oliver Gugger
e7dc483013
Merge pull request #950 from lightninglabs/bump-tapd-0-5-1-rc1
Update tapd to v0.5.1-alpha.rc1, bump version to v0.14.1-alpha.rc1
2025-01-22 13:52:54 -06:00
Oliver Gugger
db23a1b691
version: bump version to v0.14.1-alpha.rc1 2025-01-22 20:34:03 +01:00
Oliver Gugger
90d6bdf7e3
docs: update release notes 2025-01-22 20:34:03 +01:00
Oliver Gugger
5e41fccafc
mod: update to latest tapd version 2025-01-22 18:04:56 +01:00
András Bánki-Horváth
85143d9ee6
Merge pull request #949 from bhandras/litrpc-bump
build: bump litrpc to v1.0.1
2025-01-21 13:50:07 +01:00
Andras Banki-Horvath
a1449e371b
build: bump litrpc to v1.0.1 2025-01-21 13:27:57 +01:00
Elle
76c63dbfcc
Merge pull request #939 from ellemouton/sql3Accounts3
[sql-3] accounts: replace calls to UpdateAccount
2025-01-21 12:41:57 +02:00
Elle Mouton
a4506c9e1f
accounts: safe check of pendingPayments in tests
In this commit, we avoid race conditions that can happen for tests that
directly access the service's `pendingPayment` map.
2025-01-21 12:20:33 +02:00
Elle Mouton
4d8d4e1fa3
accounts: use UpsertAccountPayment in removePayment
Instead of UpdateAccount.
2025-01-21 12:20:33 +02:00
Elle
e2c4da25b4
Merge pull request #948 from lightninglabs/netBump
mod: bump net dep to v0.33.0
2025-01-21 12:19:23 +02:00
Elle Mouton
7fb7faa124
accounts: add DeleteAccountPayment method to Store
And use it instead of UpdateAccount.
2025-01-21 12:02:29 +02:00
Elle Mouton
c386008fe6
accounts: use UpsertAccountPayment for TrackPayment
Instead of useing UpdateAccount.
2025-01-21 12:02:19 +02:00
Elle Mouton
340dc5d5b0
accounts: add new UpsertAccountPayment Store method
And use it in the InterceptorService's paymentUpdate method.
2025-01-21 12:01:33 +02:00
Elle Mouton
860edec7be
mod: bump net dep to v0.33.0 2025-01-21 10:59:01 +02:00