304c8df7b9
Merge pull request #9251 from morehouse/fuzz_lnwire
...
lnwire: add new fuzz targets
2024-11-13 14:23:16 +01:00
4d184dffd0
Merge pull request #9259 from yyforyongyu/prepare-itest-for-blockbeat
...
trivial: prepare itest for `blockbeat`
2024-11-13 12:57:42 +01:00
5e5291d044
localchans: add test for createEdge and manager
2024-11-13 12:13:11 +01:00
bb4d3db8bc
localchans: recreate missing edge if not found
...
If a node contains a channel, but doesn't have a corresponding edge in
the graph database, updating the channel policy would fail. In this
commit the edge is recreated if the channel exists. This ensures a node
can recover from a missing edge in the graph database by calling
updatechanpolicy.
2024-11-13 12:13:11 +01:00
aa2ddf77d0
lncli: add create_missing_edge
2024-11-13 12:13:11 +01:00
f1299fdd57
lnrpc: add create_missing_edge flag
2024-11-13 12:13:11 +01:00
e0f27a68ea
Typo Update ruby.md
...
Fix typo: "handhsake" to "handshake"
2024-11-13 13:59:58 +03:00
653a8ac55e
lntest+itest: add new method AssertChannelInGraph
...
This commit replaces `AssertTopologyChannelOpen` with
`AssertChannelInGraph`, which asserts a given channel edge is found.
`AssertTopologyChannelOpen` only asserts a given edge has been received
via the topology subscription, while we need to make sure the channel is
in the graph before continuing our tests.
2024-11-12 23:55:40 +08:00
7dda2960a5
lntest: update the block height of HarnessTest during start
2024-11-12 23:55:40 +08:00
2905e7b3df
lntest+itest: kill node and wait its process
...
Fix a flake found in `testRPCMiddlewareInterceptor` when running in
macOS.
2024-11-12 23:55:40 +08:00
90bca1022b
lntest: retry finding the payment from ListPayments
2024-11-12 23:55:40 +08:00
4506fd30cb
lntest: change the nodeCounter
to be atomic
2024-11-12 23:55:13 +08:00
cc6ff150b9
lntest: remove deprecated config --profile
2024-11-12 14:46:31 +08:00
6ac588e655
lntest: remove an invalid check
...
`openChannelsForNodes` is called inside `openZeroConfChannelsForNodes`
so this value can be true.
2024-11-12 14:46:30 +08:00
4f6b510869
Merge pull request #9248 from yyforyongyu/fix-itest
...
lntest: fix edge assertion and reset min relay fee
2024-11-11 22:16:03 +08:00
7dd9a17625
lntest+itest: fix testUpdateChanStatus
2024-11-11 20:57:50 +08:00
d27ff34b04
lntest+itest: rename AssertNumEdges
to AssertNumActiveEdges
...
To properly reflect what the assertion is.
2024-11-11 20:57:49 +08:00
35992e1503
lntest+itest: expore method createSimpleNetwork
...
So it can be used via `ht.CreateSimpleNetwork`.
2024-11-11 20:57:49 +08:00
9682aa7a78
itest: fix testZeroConfChannelOpen
and testOptionScidAlias
...
Use a new node instead of standby node to avoid closing the channels in
the end.
2024-11-11 20:54:10 +08:00
a745d74e7c
lntest: make sure standby nodes' edges are cleaned
2024-11-11 20:54:10 +08:00
e7d0754615
lntest: make sure minRelayFeerate is reset
...
So every test starts with the default minRelayFeerate.
2024-11-11 20:54:10 +08:00
4f7267ecea
lnwire: add fuzz target for Fee TLV
...
The new Fee TLV is not included in any other messages within the lnwire
package, so it currently has no fuzzing coverage. This fuzz target
directly tests the encoding/decoding of the TLV to get some coverage.
2024-11-08 15:03:30 -06:00
f1b7d52308
lnwire: add fuzz target for Schnorr sig conversion
...
Analogous to FuzzConvertFixedSignature but for Schnorr signatures.
2024-11-08 15:01:48 -06:00
b82ae51a0b
lnwire: add fuzz target for route blinding message
...
Add a simple decode/encode target for the FailInvalidBlinding message.
2024-11-08 15:00:06 -06:00
2784da13f8
lnwire: add fuzz targets for gossip 1.75 messages
...
Add simple decode/encode targets for AnnouncementSignatures2,
ChannelAnnouncement2, and ChannelUpdate2.
2024-11-08 14:57:13 -06:00
5a8026aba9
Merge pull request #9249 from yyforyongyu/fix-shutdown
...
routing: fix missionControlStore blocks on shutting down
2024-11-08 11:09:45 +01:00
4430687076
Merge pull request #9240 from carlaKC/9166-mergeonly
...
htlcswitch: merge htlc custom records on modify
2024-11-08 08:38:00 +02:00
faa4f24806
Merge pull request #9182 from ziggie1984/fix-feebuffer
...
Deprecate dust-threshold config value
2024-11-07 19:41:38 -08:00
3a14382720
Merge pull request #9068 from ziggie1984/cancel-back-dust-htlc
...
Cancel back outgoing dust htlcs before commitment is confirmed.
2024-11-07 19:40:33 -08:00
59f32682a5
contractcourt: introduce option for commitKey.
2024-11-07 22:40:53 +01:00
d5e8df7067
docs: add release-notes for LND 19
2024-11-07 22:40:53 +01:00
50d6864137
itest: adopt itests for the new behavior
...
Now outgoing dust-htlcs are canceled back before the commitment
is confirmed onchain.
2024-11-07 22:40:53 +01:00
7aa9ade4c2
contratcourt: dont consider dust htlc for anchor sweep
...
Now that we cancel dust htlcs prematurely even before the
commitment tx is confirmed we don't consider dust htlcs when
creating the cpfp transaction.
2024-11-07 22:40:52 +01:00
8ed8665d50
contractcourt: Cancel dust htlcs prematurely
...
We will now cancel dust htlcs on the local/remote commits after
we decided to go onchain. This can be done because dust cannot
be enforced onchain and therefore there is no way to also reveil
the preimage onchain.
2024-11-07 22:40:52 +01:00
151068c5e9
release-notes: note that modify custom records are merged
2024-11-07 13:48:04 -05:00
7896bef2a0
htlcswitch: merge copy htlc custom records
2024-11-07 13:46:54 -05:00
0899077fb5
Merge pull request #7762 from guggero/empty-resp
...
lnrpc: return meaningful response instead of empty one
2024-11-07 19:14:44 +01:00
4fe36f1887
docs: add release notes
2024-11-08 01:53:07 +08:00
f42636fec9
Merge pull request #8985 from ProofOfKeags/fn/collect-results
...
fn: more fn goodies
fn/v2.0.0
2024-11-07 18:50:57 +01:00
20dc7f29f8
multi: fix typo and add comment.
2024-11-07 18:32:45 +01:00
328a711dbe
contractcourt: enhance chainAction type
...
We distinguish between dangling and dust htlcs. This does not
change any logic but only introduces new types to later act on them
differently when we begin to fail dust htlcs earlier in a later
commit.
2024-11-07 18:32:45 +01:00
8890f83bde
contratcourt: refactor resolving htlc logic
...
Refactor the part where we are failing back the incoming htlc
when the channel of the corresponding outgoing htlc is force
closed. We do this because in furture commits we separate the
logic when we fail back the incoming htlc (abandonForward).
Right now we fail abandon dust forwards and non-dust forwards
only when the commitment transaction is confirmed. Later we will
move the canceling of the upstream htlc when the commitment
transaction is broadcasted instead of waiting until the commitment
tx is confirmed. The reason for that is that dust cannot be enforced
onchain anyways so there is no reason to wait.
2024-11-07 18:32:45 +01:00
98a270bd30
contractcourt: improve robustness
2024-11-07 18:32:44 +01:00
227cc3a45c
routing: fix missionControlStore blocks on shutting down
2024-11-08 01:23:33 +08:00
9f35664a12
fn: breaking - make or else functions accept error argument
2024-11-06 17:32:59 -07:00
dd7f1569c7
fn: breaking - rename ChainOption to FlatMapOption for consistency
2024-11-06 17:32:59 -07:00
5e947046a3
fn: breaking - give Result's FlatMap proper functor annotation
2024-11-06 17:32:59 -07:00
4d16d5ff15
fn: breaking - replace AndThen2 with more principled LiftA2Result
2024-11-06 17:32:59 -07:00
1480287cfc
fn: breaking - improve naming of option api functions
2024-11-06 17:32:59 -07:00
be50dd9acb
fn: breaking - remove deprecated Result functions
2024-11-06 17:32:59 -07:00