Olaoluwa Osuntokun
14ce4f17ab
protofsm: add test for new full block conf behavior
2025-06-20 15:48:41 -07:00
Olaoluwa Osuntokun
3e29342353
protofsm: add option to allow conf resp to return full back
...
In this commit, we add an option to allow a conf req caller to receive
the full block. This is useful if the caller wants to be able to create
an SPV proof.
2025-06-20 15:48:41 -07:00
Olaoluwa Osuntokun
fd03675f79
Merge branch '0-19-2-branch-rc1-9725' into 0-19-2-branch-rc1
2025-06-20 15:48:29 -07:00
Olaoluwa Osuntokun
6cee18ff4a
protofsm: add generic type assertion to state machine tests
...
This commit introduces a new generic type assertion function
`assertState` to the state machine tests. This function asserts that the
state machine is currently in the expected state type and returns the
state cast to that type. This allows us to directly access the fields of
the state without having to perform a type assertion manually.
2025-06-20 15:48:29 -07:00
Olaoluwa Osuntokun
f11d1d7460
protofsm: add unit tests for SpendMapper
2025-06-20 15:48:29 -07:00
Olaoluwa Osuntokun
1304182897
protofsm: add new ConfMapper similar to SpendMapper for conf events
...
In this commit, we add a new ConfMapper which is useful for state
machines that want to project some of the conf attributes into a new
event to be sent post conf.
2025-06-20 15:48:29 -07:00
Olaoluwa Osuntokun
6e6901ec61
Merge branch '0-19-2-branch-rc1-9962' into 0-19-2-branch-rc1
2025-06-20 15:46:10 -07:00
yyforyongyu
6bf9a38940
chainio: use package logger instead of instance logger
...
There's no guarantee that the `b.beat` is initialized when the
dispatcher shuts down, especially with the case in the remote signer
where no chainbackend is created.
2025-06-20 15:46:10 -07:00
Olaoluwa Osuntokun
ff6ea786ec
Merge branch '0-19-2-branch-rc1-9921' into 0-19-2-branch-rc1
2025-06-20 15:45:56 -07:00
yyforyongyu
1d2217e9a9
docs: update release notes
2025-06-20 15:45:56 -07:00
yyforyongyu
732cd717bf
chainntnfs: use spent height as height hint if found
...
Previously when deciding whether a UTXO is spent or not, we accept a
height hint as the starting block to look for the spending tx in the
rescan process. When it's already found spent before the rescan starts,
we will update the height hint to be the spent height, only if the
latter is greater. This means if the user-specified hint is greater than
the actual spending height, this UTXO will never be found as spent. We
now fix it by always using the spent height as the hint.
2025-06-20 15:45:56 -07:00
yyforyongyu
a806323035
chainntnfs: patch debug logs and fix StartHeight
...
Make sure we patch the `StartHeight` for btcd notifier.
2025-06-20 15:45:56 -07:00
Olaoluwa Osuntokun
270981eef0
Merge branch '0-19-2-branch-rc1-9653' into 0-19-2-branch-rc1
2025-06-20 15:45:39 -07:00
djkazic
2ffcefc947
channeldb: perform init of top level buckets first
2025-06-20 15:45:39 -07:00
Olaoluwa Osuntokun
ff95646d42
Merge branch '0-19-2-branch-rc1-9889' into 0-19-2-branch-rc1
2025-06-20 15:45:21 -07:00
yyforyongyu
0608cc0428
channeldb+lnwallet: fix typo
2025-06-20 15:45:13 -07:00
yyforyongyu
f326fbb840
docs: add release note entry
2025-06-20 15:45:12 -07:00
yyforyongyu
6947e0a87a
channeldb: add customized encoding for HtlcIndex
2025-06-20 15:44:16 -07:00
yyforyongyu
938d78a28b
lnwallet+channeldb: use BigSizeT
to save space
2025-06-20 15:44:16 -07:00
Olaoluwa Osuntokun
6e8d5522ea
Merge branch '0-19-2-branch-rc1-9813' into 0-19-2-branch-rc1
2025-06-20 15:43:53 -07:00
Abdullahi Yunus
473240533b
docs: add release note
2025-06-20 15:42:20 -07:00
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