Commit Graph

18823 Commits

Author SHA1 Message Date
Abdullahi Yunus
768911c46f lnd+lnrpc: update fwdinghistory message
In this commit we update the returned message for fwdinghistory
to include the htlcindex for all forwarded htlcs.
2025-06-20 15:37:24 -07:00
Abdullahi Yunus
43f8bf288f htlcswitch+channeldb: add htlcidx to fwding log
In this commit we add htlcindex field to the forwardingevent
struct, which is persisted alongside the other event fields.
2025-06-20 15:37:02 -07:00
Olaoluwa Osuntokun
b27f401ccc Merge branch '0-19-2-branch-rc1-9911' into 0-19-2-branch-rc1 2025-06-20 15:31:00 -07:00
ziggie
21ed1360cd htlcswitch: exit early if no adds are in the fwd pkg
This lead to the case that we would always record a HTLC
two times in the decayed log protection which is not necessary
in the first place.
2025-06-20 15:31:00 -07:00
Olaoluwa Osuntokun
59a86b3b54 Merge pull request #9927 from Roasbeef/0-19-1-branch
build: bump version to v0.19.1
v0.19.1-beta
2025-06-10 18:45:01 -07:00
Olaoluwa Osuntokun
51bc76cc9f build: bump version to v0.19.1 2025-06-10 17:22:53 -07:00
Oliver Gugger
a0b2764167 Merge pull request #9896 from lightningnetwork/0-19-1-rc1-branch
release: create branch for v0.19.1-beta.rc1
v0.19.1-beta.rc1
2025-06-04 14:05:39 +02:00
Oliver Gugger
fedc4c939f build: bump version to v0.19.1-beta.rc1 2025-06-04 13:00:47 +02:00
Oliver Gugger
0aa53b74a4 docs: add missing release note entry for #9858 2025-06-04 13:00:47 +02:00
Oliver Gugger
48bdd3fc1f Merge branch '0-19-1-rc1-branch-9876' into 0-19-1-rc1-branch 2025-06-04 12:22:11 +02:00
yyforyongyu
14fbba5a5d docs: update release notes 2025-06-04 12:22:11 +02:00
yyforyongyu
9fcde4b452 lnd: increase DefaultNumRestrictedSlots to 100 2025-06-04 12:22:11 +02:00
yyforyongyu
643b1c8af7 accessman: patch unit tests 2025-06-04 12:22:11 +02:00
yyforyongyu
6d70e3607b accessman: only check ban score for restricted peers
If a peer has, or used to have a channel with us there's no need to
check for the ban score.
2025-06-04 12:22:11 +02:00
Oliver Gugger
77882c2712 Merge branch '0-19-1-rc1-branch-9875' into 0-19-1-rc1-branch 2025-06-04 12:21:47 +02:00
ziggie
258ce4f107 docs: add release notes for 19.1 2025-06-04 12:21:34 +02:00
ziggie
48e440e560 discovery: increase syncer gossip chan buffer 2025-06-04 12:21:00 +02:00
ziggie
6f8a94c094 brontide: increase logging when processing gossip msgs
We add logging to we can draw conclusions how long the processing
of gossip message last and potentially see whether the syncer
buffer channel size is a bottleneck in processing.
2025-06-04 12:21:00 +02:00
Oliver Gugger
85689b18b3 Merge branch '0-19-1-rc1-branch-9858' into 0-19-1-rc1-branch 2025-06-04 12:20:23 +02:00
Olaoluwa Osuntokun
0484aa2496 peer+feature: start to signal the prod rbf coop close bit
In this commit, we start to signal the prod bit for the rbf coop close
feature. We keep our signaling of the staging bit in place to ensure
the protocol continues to work between those nodes in the wild that are
still signaling the bit.

Fixes https://github.com/lightningnetwork/lnd/issues/9852
2025-06-04 12:20:23 +02:00
Oliver Gugger
4db8b40e8d Merge branch '0-19-1-rc1-branch-9890' into 0-19-1-rc1-branch 2025-06-04 12:20:03 +02:00
ziggie
a7634d5dc5 docs: update release-notes 2025-06-04 12:20:03 +02:00
ziggie
df2def1473 mod: update btclog library 2025-06-04 12:20:02 +02:00
Oliver Gugger
0815245cfc Merge branch '0-19-1-rc1-branch-9872' into 0-19-1-rc1-branch 2025-06-04 12:19:41 +02:00
ziggie
0055f84732 docs: add release notes 2025-06-04 12:19:41 +02:00
ziggie
49d40c8ea1 brontide: fix peer disconnection issue
In case when the rbf coop close feature was active we would not
properly disconnect the peer.
2025-06-04 12:19:41 +02:00
ziggie
275ab7da1d itest: add disconnect test
Add a connect/disconnect test when the peers both started up
with the rbf coop close feature.
2025-06-04 12:19:41 +02:00
Oliver Gugger
fdd2717c37 Merge branch '0-19-1-rc1-branch-9885' into 0-19-1-rc1-branch 2025-06-04 12:19:20 +02:00
ffranr
00f9589929 protofsm: exercise StateMachine.IsRunning() in unit test
Update unit test to call `StateMachine.IsRunning()` to ensure the
method has test coverage.
2025-06-04 12:19:20 +02:00
Oliver Gugger
6c3545ad53 Merge branch '0-19-1-rc1-branch-9883' into 0-19-1-rc1-branch 2025-06-04 12:19:03 +02:00
ffranr
6f4811fc14 protofsm: add thread-safe IsRunning method to StateMachine
This commit introduces a new `IsRunning()` method to the `StateMachine`.
This method allows callers to safely query whether the state machine
is currently active after it has been started and before it has been
stopped.

To ensure thread-safety, the internal `running` status flag is
implemented using `atomic.Bool` (from `sync/atomic`). Without atomic
operations, concurrent accesses to a simple boolean flag from different
goroutines (e.g., one goroutine calling `IsRunning()` while another
executes `Start()` or `Stop()`) could lead to stale reads or data races.
2025-06-04 12:19:03 +02:00
Oliver Gugger
19b2e42e18 Merge branch '0-19-1-rc1-branch-9854' into 0-19-1-rc1-branch 2025-06-04 12:18:38 +02:00
yyforyongyu
b703cf2042 docs: add release notes 19.1 2025-06-04 12:18:21 +02:00
yyforyongyu
9d5b103d09 docs: add release notes template 2025-06-04 12:17:55 +02:00
yyforyongyu
15d14ee1c4 gomod: update btcwallet 2025-06-04 12:17:54 +02:00
yyforyongyu
92279e87ae lntest+itest: add testBumpFeeExternalInput 2025-06-04 12:17:54 +02:00
yyforyongyu
6afdda837c itest: add new file lnd_bump_fee.go
Move bumpfee RPC related tests into one file - these tests focus on
testing the behaivor of the RPC only without any force close context.
2025-06-04 12:17:54 +02:00
Oliver Gugger
5f37da3f21 Merge branch '0-19-1-rc1-branch-9856' into 0-19-1-rc1-branch 2025-06-04 12:17:22 +02:00
Elle Mouton
2512677b08 docs: add release notes for 0.19.1 2025-06-04 12:17:00 +02:00
Elle Mouton
c79daf68fa lnwire: add *OpaqueAddrs case in WriteElements
And then expand the chanbackup unit tests to cover such a case.
2025-06-04 12:16:09 +02:00
Elle Mouton
2530ab13c7 lnwire: remove duplicated logic
Use existing serialisation helpers for serialising TC Pand Onion
addresses in WriteElement.
2025-06-04 12:16:09 +02:00
Elle Mouton
659549a5fc chanbackup: make sure onion addresses are covered in tests 2025-06-04 12:16:08 +02:00
Oliver Gugger
4b3fb1150b Merge pull request #9893 from ziggie1984/fix-memory-leak-cherry-pick
fix memory leak cherry pick
2025-06-04 12:07:42 +02:00
ziggie
7477a91472 docs: add release-notes 19.1 2025-06-04 10:58:48 +02:00
ziggie
45ebb9b900 discovery: add comments to the ctx creation
We highlight why we do not use the returned cancel method of the
context guard.
2025-06-04 10:55:22 +02:00
ziggie
af47604cc3 fn: add comment to context create fn 2025-06-04 10:55:22 +02:00
Elle Mouton
fe3a862ec3 autopilot: revert passing ctx to Start methods 2025-06-04 10:54:36 +02:00
Elle Mouton
6202597eec discovery: revert passing ctx through to Start methods 2025-06-04 10:54:35 +02:00
Elle Mouton
2f99706fa1 multi: remove kvdb.RTx from ForEachNodeChannel
Since we have not removed all call-sites that make use of this
parameter, we can remove it. This helps hide DB-specific details from
the interface we will introduce for the graph store.
2025-06-04 10:54:35 +02:00
Elle Mouton
de11997fad graph/db: use only exported KVStore methods in tests
Replace all calls to bbolt specific methods on the KVStore to instead
use exported methods on the KVStore that are more db-agnostic.
2025-06-04 10:54:35 +02:00