Commit Graph

19564 Commits

Author SHA1 Message Date
Oliver Gugger
bc33986bfa chancloser: fix flake in TestRbfCloseClosingNegotiationRemote
This fixes the actual flake: We didn't wait for next iterations to _not_
come in, so depending on timing, we could read another transition in a
second run.
But making sure we expect all transitions at the same time and then make
sure no further transitions come in makes this not depend on time.
2025-07-21 13:49:16 +02:00
Oliver Gugger
263d070624 chancloser: increase timeouts 2025-07-21 13:49:16 +02:00
Oliver Gugger
f96ad47d28 make: add flakehunter-unit-all and flakehunter-unit-race
These two new goals take all the usual flags like pkg=, case=, nocache= and so
on.
2025-07-21 13:48:42 +02:00
Oliver Gugger
0860f2dac4 chancloser: fix nolint comments, fix formatting 2025-07-21 13:48:31 +02:00
Oliver Gugger
6b1c85265f lnrpc+rpcserver: add QoL flag for permission check
To make it even more obvious that by default the permissions to check
aren't taken from the full method provided, we add a new flag that does
that on request.
2025-07-21 13:07:43 +02:00
Oliver Gugger
66340500e9 lnrpc+rpcserver: improve docs for CheckMacaroonPermissions
Fixes #10026.
2025-07-21 13:06:25 +02:00
Oliver Gugger
270fad23f1 scripts/keys: remove old expired or revoked keys
Fixes #10093.
This commit removes some old signing keys that haven't been used to sign
in a while and have either expired or been revoked.

=== scripts/keys/arshbot.asc ===
KeyID: 90E00CCB1C74C611 Created: 2018-08-08 Expires: 2022-08-08 Revoked: NO

=== scripts/keys/Crypt-iQ.asc ===
KeyID: 118759E83439A9B1 Created: 2019-05-31 Expires: 2022-10-13 Revoked: NO

https://github.com/lightningdevkit/rust-lightning/pull/2029
2025-07-21 09:43:19 +02:00
Oliver Gugger
8023583414 chancloser: use separate broadcast channels
This doesn't change the behavior but makes the use of the broadcast
channels more clear.
2025-07-18 14:07:30 +02:00
Oliver Gugger
899131f7be chancloser: use param instead of constant
The param previously was unused so this was likely an oversight or
copy/paste error.
This does not change any behavior, as the method was always called with
the constant previously used. But it makes things more explicit.
2025-07-18 14:07:29 +02:00
Oliver Gugger
5c62e904e2 Merge pull request #10032 from yyforyongyu/fix-ci-cache
CI: reduce cache size and auto clean caches
2025-07-18 03:07:34 -06:00
yyforyongyu
af2f935ab7 .github: add timeout when sending coverage reports
We also make it cancelable.
2025-07-18 15:41:46 +08:00
yyforyongyu
f2e1c11593 .github: remove github.job from the cache key and update docs
This commit adds a more descriptive docs about the caching process. In
addition, the `github.job` is now removed from the cache key
construction to allow jobs sharing the same cache. In addition, given we
now use `inputs.key-prefix`, the `github.job` is no longer relevant as
the `key-prefix` already creates a unique name for the cache.

We also update the lint and check commits job to use the same cache from
the unit test, given they are running in the same environment.
2025-07-18 15:41:46 +08:00
yyforyongyu
4b1a68778e .github: use title case in job names
To unify the format used in job names.
2025-07-18 15:41:46 +08:00
yyforyongyu
a83dcaffae .github: add new action cleanup-space 2025-07-18 15:41:44 +08:00
yyforyongyu
81ce5aad94 .github: run PR review stats only for side branches 2025-07-17 20:42:24 +08:00
yyforyongyu
db0927fb95 .github: auto clean caches older than 12 hours 2025-07-17 20:42:24 +08:00
yyforyongyu
4f98a0313a .github: add write permission to delete caches 2025-07-17 20:42:24 +08:00
yyforyongyu
da2b3469dd .github: move small tasks onto the same machine
Thus saving us from the overhead cost, also they can share the same
cache file.
2025-07-17 20:42:21 +08:00
yyforyongyu
77380debbc .github: replace the aggressive cleanup with a more targeted one
This follows GitHub's official recommendation to avoid re-downloading
essential tools that setup-go might depend on
2025-07-17 16:02:35 +08:00
yyforyongyu
583b8562ab .github: use module cache only whenever possible 2025-07-17 16:02:33 +08:00
Olaoluwa Osuntokun
47e9f05ddf Merge pull request #10027 from yyforyongyu/dyn-bigsize-msg
Fix `ExtraData` field and use `BigSize` encodine
2025-07-16 10:56:30 -07:00
Oliver Gugger
012fb79d7e Merge pull request #9751 from starius/bump-deps
multi: update Go to 1.23.10 and update some packages
2025-07-16 01:46:21 -06:00
Boris Nagaev
aff7570845 go.mod: move indirect deps to the bottom group 2025-07-16 01:21:33 -03:00
Boris Nagaev
ec6688fc1e kvdb: remove unused replace directive
github.com/dgrijalva/jwt-go package is not referenced in any transitive
dependency anymore which allows us to remove one of the replace directives
which was added as a security precaution before.
2025-07-16 01:19:58 -03:00
Boris Nagaev
643fbb8af6 multi: update Go to 1.23.10 2025-07-16 01:19:58 -03:00
Boris Nagaev
fb48ffe2b6 multi: update btcd to v0.24.2 2025-07-16 01:19:58 -03:00
Boris Nagaev
ea7d9fcc14 multi: update pgx/v5 to v5.7.4, pgx/v4 to v4.18.3 2025-07-16 01:19:58 -03:00
Boris Nagaev
dc6ce69bad multi: update x/net to v0.39.0 2025-07-16 01:19:58 -03:00
Boris Nagaev
eb5ec87498 multi: update docker Go package to v28.1.1 2025-07-16 01:19:55 -03:00
Boris Nagaev
2bf67711dd multi: update golang-jwt to 4.5.2 2025-07-16 01:18:22 -03:00
Boris Nagaev
4ec9708acc multi: update x/crypto to v0.37.0 2025-07-16 01:18:22 -03:00
Olaoluwa Osuntokun
9059a4e7ba Merge pull request #10080 from ellemouton/graphPrefixTables
sqldb+graph/db: prefix graph SQL objects with "graph_"
2025-07-15 15:21:02 -07:00
Oliver Gugger
d7100ebe52 Merge pull request #10057 from Abdulkbk/outchanids-to-queryroutes
routerrpc: accept mutliple outgoing chan ids in queryroutes
2025-07-15 15:02:23 -06:00
Oliver Gugger
e72e414091 Merge pull request #10073 from ellemouton/graphMigUnitTestsRapid
graph/db: add graph SQL migration rapid unit test
2025-07-15 14:11:31 -06:00
yyforyongyu
9039cd1396 walletunlocker: assert new password can be used to open the store 2025-07-16 02:21:13 +08:00
Abdullahi Yunus
b85ecb4601 doc: add release note 2025-07-15 18:43:05 +01:00
Abdullahi Yunus
7faf20bd56 lnrpc: deprecate OutgoingChanId
In this commit we deprecate the OutgoingChanId field in the
QueryRoutes in favor of OutgoingChanIds.
2025-07-15 18:42:56 +01:00
Abdullahi Yunus
3c40233f83 commands: specify multiple outchan ids
In this commit we make it possible to specify outgoing_chan_id
multiple times in the same queryroutes command.
2025-07-15 18:42:43 +01:00
Abdullahi Yunus
e3838c5dd2 routerrpc: use multiple chanids in route request
In this commit we allow for setting more than one outgoing chan ids
to the restrictions of in router's query route request.
2025-07-15 18:42:23 +01:00
Abdullahi Yunus
51882e130f lnrpc: add outchan ids to proto 2025-07-15 18:34:24 +01:00
yyforyongyu
c643c47288 walletunlocker: fix typos in the tests 2025-07-16 01:28:52 +08:00
yyforyongyu
3a6e656faa walletunlocker: wait for goroutine to finish before exit
Make sure we wait for `doChangePassword` goroutine to finish before
exiting the test. We also remove the `openOrCreateTestMacStore` call
inside `doChangePassword` as it was never finished.
2025-07-16 01:28:52 +08:00
yyforyongyu
da277482bb walletunlocker: add missing return and wrong password
We are missing a return here, and we are testing opening the macaroon db
using the new password, not the old one.
2025-07-16 01:28:51 +08:00
Oliver Gugger
7f491dbd88 Merge pull request #10079 from guggero/funding-timeout-error
Add missing `FundingTimeoutEvent` type to `SubscribeChannelEvents` RPC
2025-07-15 10:42:08 -06:00
Elle Mouton
74b70a5108 sqldb+graph/db: prefix graph SQL objects with "graph_"
This makes it more clear what each table is for especially when viewed
with other invoice/payments tables.
2025-07-15 18:40:16 +02:00
Elle Mouton
d7b8259a36 graph/db: add graph SQL migration rapid unit test 2025-07-15 18:17:23 +02:00
Elle Mouton
ed17574196 lnwire: fix RandNodeAlias to produce valid UTF-8
To ensure that the RandNodeAlias helper can be used elsewhere to
generate random aliases, we adjust it in this test to only produce valid
UTF-8 strings as required by the spec.
2025-07-15 18:06:05 +02:00
Elle Mouton
955f4c9182 graph/db: refactor to make postgres fixtures re-usable
In preparation for tests where we will want to spin up SQL DBs many
times, we do some refactoring so that it is easy to re-use postgres
fixtures since those are expensive to spin up.
2025-07-15 18:06:05 +02:00
Oliver Gugger
6f90204e20 docs: add release notes 2025-07-15 17:16:00 +02:00
Oliver Gugger
f5b27bf057 lnrpc+rpcserver: add missing channel update event type
Fixes the error "unexpected channel event update" in
SubscribeChannelEvents.
2025-07-15 17:12:17 +02:00