Commit Graph

19596 Commits

Author SHA1 Message Date
Olaoluwa Osuntokun
2e36f9b8b9 Merge pull request #10096 from yyforyongyu/increase-gossip-default
Increase the default outgoing bandwidth
2025-07-25 15:34:01 -05:00
Oliver Gugger
f4173dbb83 Merge pull request #10090 from starius/up-deps
update golang dependencies
2025-07-25 13:25:33 -06:00
Boris Nagaev
d02520d2b9 go.mod: bump mapstructure/v2 to v2.3.0 2025-07-25 12:21:18 -03:00
Boris Nagaev
3ff11e0765 go.mod: bump runc to v1.1.14 2025-07-25 12:21:13 -03:00
Boris Nagaev
9e58a644aa go.mod: bump google.golang.org/protobuf to 1.33.0
Updated github.com/golang/protobuf to v1.5.4 to be compatible with
google.golang.org/protobuf.

Updated the pinned version in pinned_dep CI job.
2025-07-25 12:20:24 -03:00
Oliver Gugger
839370946e Merge pull request #10108 from yyforyongyu/fix-arb-deadlock
Fix arbitrator deadlock found in `ResolveContract`
2025-07-25 04:42:32 -06:00
yyforyongyu
d0c07d76d2 docs: update release notes 2025-07-25 17:45:02 +08:00
yyforyongyu
03bf1974a3 lncfg: update docs about msg-rate-bytes and msg-burst-bytes 2025-07-25 17:41:00 +08:00
yyforyongyu
cadf870dcb discovery: increase default msg rates to 1MB 2025-07-25 17:40:59 +08:00
yyforyongyu
19a6358a3e docs: add release notes 2025-07-25 17:13:44 +08:00
yyforyongyu
10b4ed6c28 contractcourt: replace MarkChannelClosed with NotifyChannelResolved 2025-07-25 17:13:43 +08:00
yyforyongyu
d3501197be contractcourt: add a new chan resolvedChan to handle resolved channels
Thus we can mark channels as resolved in an async way to avoid deadlock.
2025-07-25 17:13:43 +08:00
Abdullahi Yunus
754c254a4b commands: add test for parseChanIDs
In this commit we add test for `parseChanIDs` to make sure it
parses the chan ids correctly and return errors when invalid value
is passed.

Signed-off-by: Abdullahi Yunus <abdoollahikbk@gmail.com>
2025-07-23 15:31:59 +01:00
Abdullahi Yunus
35c6cecd22 commands: use parseChanIDs method
In this commit we use the `parseChanIDs` method introduced in a
previous commit to process the `outgoing_chan_id` flag for
`queryroutes`.
2025-07-23 15:24:03 +01:00
Abdullahi Yunus
40fe9e9ce3 commands: use StringSlice flag for send payment
In this commit we replace the Int64Slice flag with StringSlice for
chan id flag, in sendpayment request.
2025-07-23 15:21:55 +01:00
Abdullahi Yunus
4751016839 commands: use StringSliceFlag for chan ids
In this commit we use stringSlice flag for incoming and outgoing
channel ids args, for forwarding history command. The Int64Slice
range does not cover all possible scids in the custom alias range.
2025-07-23 15:08:58 +01:00
Oliver Gugger
6f09d9653f Merge pull request #10052 from guggero/rbf-close-err
chancloser: fix flakes in chancloser tests
2025-07-23 03:47:09 -06:00
Elle
90e2116842 Merge pull request #10081 from ellemouton/graphSQLSlices
graph/db: use `/*SLICE:<field_name>*/` to optimise various graph queries
2025-07-22 18:27:10 +02:00
Oliver Gugger
05b87f5ec1 Merge pull request #10075 from yyforyongyu/fix-TestChangeWalletPasswordStateless
Fix flake in `TestChangeWalletPasswordStateless`
2025-07-22 10:02:06 -06:00
Elle Mouton
ddc0e95eda graph/db+sqldb: delete channels in batches
Use the new `SLICES` directive to add a DeleteChannels query which takes
a set of DB channel IDs. Then replace all our calls to DeleteChannel
with a paginated call to DeleteChannels.
2025-07-22 17:17:23 +02:00
Elle Mouton
de6c030f29 graph/db: let DeleteChannelEdges use new wrapped SQL call
Update it to use the new wrapped version of
GetChannelsBySCIDWithPolicies to reduce the number of DB calls.
2025-07-22 17:17:13 +02:00
Elle Mouton
e269d57ffa sqldb+graph/db: use pagination for FetchChanInfos 2025-07-22 17:17:11 +02:00
Elle Mouton
88e9a21d63 sqldb+graph/db: update FilterKnownChanIDs to use pagination
Remove a TODO by making use of the new sqldb.ExecutePagedQuery to fetch
channels in batches rather than one by one.
2025-07-22 17:16:59 +02:00
Elle Mouton
f72c48b283 graph/db+sqldb: pass set of outpoints to SQL
This commit adds a new GetChannelsByOutpoints query which takes a slice
of outpoint strings. This lets us then update PruneGraph to use
paginated calls to GetChannelsByOutpoints instead of making one DB call
per outpoint.
2025-07-22 17:16:49 +02:00
Elle Mouton
2fa30e8735 graph+config: add sql pagination config to ChannelGraph 2025-07-22 17:16:41 +02:00
Elle Mouton
f0d2d1fd0a sqldb: demonstrate the use of ExecutePagedQuery
Here, a new query (GetChannelsByOutpoints) is added which makes use of
the /*SLICE:outpoints*/ directive & added workaround. This is then used
in a test to demonstrate how the ExecutePagedQuery helper can be used to
wrap a query like this such that calls are done in pages.

The query that has been added will also be used by live code paths in an
upcoming commit.
2025-07-22 17:16:38 +02:00
Elle Mouton
006905d57f sqldb: add ExecutePagedQuery helper
Along with a test for it. This helper will allow us to easily create a
pagination wrapper for queries that will make use of the new
/*SLICE:<field_name>*/ directive. The next commit will add a test
showing this.
2025-07-22 17:14:58 +02:00
Elle Mouton
5afd9a5678 scripts: add sql slices workaround to sqlc gen script
This copies the workaround introduced in the taproot-assets code base
and will allow us to use `WHERE x in <list>` type queries.
2025-07-22 17:14:55 +02:00
Olaoluwa Osuntokun
f09c7aee4e Merge pull request #10095 from guggero/remove-old-keys
scripts/keys: remove old expired or revoked keys
2025-07-21 11:10:43 -05:00
Oliver Gugger
8b8290a64d Merge pull request #10030 from guggero/macaroon-docs
lnrpc+rpcserver: improve docs for CheckMacaroonPermissions
2025-07-21 06:27:31 -06:00
Oliver Gugger
1882939cd8 chancloser: fix flake by registering subscriber first
Fixes another flake in the unit-race test: Sometimes we miss startup
events if there's a high CPU load (in CI for example).
To avoid that, we register our subscriber before starting the state
machine.
2025-07-21 13:53:25 +02:00
Oliver Gugger
15d8f963ce chancloser: fix error tests
These tests previously only worked because we didn't properly wait for
all transitions to come in. We fix them by correctly asserting the
expected number of state transitions.
2025-07-21 13:49:17 +02:00
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