Commit graph

16815 commits

Author SHA1 Message Date
George Tsagkarelis
a5fcf33082
lnrpc: add wire records fields to SendPayment & HtlcInterceptor 2024-05-22 14:45:43 +02:00
George Tsagkarelis
25b4066b17
multi: use wire records on payment and intercept flows 2024-05-22 14:44:18 +02:00
Olaoluwa Osuntokun
64639fb771
Merge pull request #8762 from ProofOfKeags/bugfix/ping-stability
Adjust ping parameters to improve tor stability
2024-05-21 19:34:57 -07:00
Keagan McClelland
1148e572bf peer: triple timeout parameters to give tor more grace 2024-05-21 13:36:46 -07:00
Keagan McClelland
61191a576d peer: make PingManager.Stop infallible 2024-05-21 13:29:31 -07:00
Keagan McClelland
94a9baefeb peer: reduce upper bound of pong bytes to ease bandwidth load 2024-05-21 13:27:56 -07:00
Oliver Gugger
68ea8d5312
Merge pull request #8750 from Chinwendu20/fnd
fn: Added `HasDuplicates` function to slice
2024-05-21 17:08:05 +02:00
Oliver Gugger
01e3ac61d8
Merge pull request #8631 from Chinwendu20/brontidetest
[code-health]: reduce duplication in brontide test.
2024-05-21 12:46:16 +02:00
Olaoluwa Osuntokun
e1c5fe2f9e
Merge pull request #8751 from yyforyongyu/fix-sweeper-18
contractcourt+sweep: fix fee function and deadline issue
2024-05-20 18:11:26 -07:00
Oliver Gugger
b009db329f
Merge pull request #8509 from GeorgeTsagk/scid-alias-rpcs
Add more RPCs for scid aliases
2024-05-20 20:05:39 +02:00
yyforyongyu
347537791e
sweep: improve loggings based on feedback
This commit changes the logging levels and add a few more loggings based
on the testing results from the testnet/mainnet.
2024-05-21 00:53:24 +08:00
yyforyongyu
e45db07a10
contractcourt+itest: make sure ChannelArbitrator has the latest htlcs 2024-05-21 00:53:23 +08:00
yyforyongyu
71ee50f87c
lncli: add missing SatPerVbyte field in bumpfee cli 2024-05-21 00:53:23 +08:00
yyforyongyu
4079f61d7e
itest+sweep: fix current itest re anchor deadline 2024-05-21 00:53:20 +08:00
George Tsagkarelis
d9a59c67c3
docs: update release notes 2024-05-20 18:50:36 +02:00
George Tsagkarelis
49f7207576
itest: add dynamic scid alias routing test 2024-05-20 18:50:36 +02:00
George Tsagkarelis
7ace55582b
aliasmgr: add alias lifecycle test 2024-05-20 18:50:36 +02:00
George Tsagkarelis
9d90485eeb
routerrpc: add XAddLocalChanAliases & XDeleteLocalChanAliases 2024-05-20 18:50:36 +02:00
George Tsagkarelis
5c1b568d3d
multi: refresh htlcswitch aliases on aliasmgr update 2024-05-20 18:50:36 +02:00
Oliver Gugger
2a8ca878fd
Merge pull request #8663 from Filiprogrammer/funding-manager-log-errors
funding: add absent error logs for failed inbound funding requests
2024-05-20 15:23:32 +02:00
Ononiwu Maureen
95016b849a
fn: Added HasDuplicates function to slice
Signed-off-by: Ononiwu Maureen <59079323+Chinwendu20@users.noreply.github.com>
2024-05-20 11:54:33 +01:00
George Tsagkarelis
cc12fb3204
aliasmgr: add delete local alias method 2024-05-20 12:03:43 +02:00
yyforyongyu
e68c0235c6
itest: add new itests to check CPFP anchor sweeping behavior
Replaced `testSweepAnchorCPFPLocalForceClose` with dedicated tests.
2024-05-18 07:45:10 +08:00
yyforyongyu
38184e88c8
sweep: check all states in TestMarkInputsPublishFailed 2024-05-18 07:45:09 +08:00
yyforyongyu
ac5af48319
sweep: make sure the budget is used up at deadlineHeight-1 2024-05-18 07:45:09 +08:00
yyforyongyu
1470adbed2
contractcourt: share deadlines between CPFP anchors and HTLCs
This commit changes how the deadline is calculated for CPFP anchor
sweeping. In order to sweep the second-level HTLCs, we need to first
get the FC tx confirmed. If we use a larger conf target for CPFP, we'd
end up having few blocks to sweep the HTLCs, as these two sweeping txns
share the deadline of the HTLC, as shown below,
```
More aggressive on the CPFP part.
|-CPFP-|-----HTLC-----|

Share the deadlines evenly.
|---CPFP---|---HTLC---|

More aggressive on the HTLC part.
|-----CPFP-----|-HTLC-|
```
In this commit, we decide to share the deadlines evenly as a starting
point so neither side will have a short of deadlines.
2024-05-18 07:45:09 +08:00
yyforyongyu
2906b8b20c
sweep: update and fix README 2024-05-18 07:45:09 +08:00
Oliver Gugger
87d5170dec
Merge pull request #8744 from orbitalturtle/custom-protocol-cfg
cfg: move experimental options to main protocol cfg
2024-05-17 08:45:34 +02:00
Oliver Gugger
3c4ebeb994
Merge pull request #8765 from hieblmi/fix-logging
routing: log edge when skipping it
2024-05-17 08:42:11 +02:00
Orbital
e8196c6feb
cfg: move experimental options to main protocol cfg 2024-05-16 17:16:50 -05:00
Oliver Gugger
2845c6497a
Merge pull request #8746 from Roasbeef/go-1-22-3
build: update release builds and CI to Go 1.22.3
2024-05-16 17:22:53 +02:00
Oliver Gugger
a908c579b4
Merge pull request #8633 from ffranr/8619-rpc+htlcswitch-add-htlc-transformation-capabilities-to-the-interceptor
rpc+htlcswitch: add htlc transformation capabilities to the interceptor
2024-05-16 16:42:32 +02:00
Slyghtning
c9713e0ddb
routing: log edge when skipping it 2024-05-16 13:54:54 +02:00
Oliver Gugger
03dceca835
multi: add incoming htlc amount to interceptor 2024-05-15 16:47:47 +01:00
ffranr
8025296bc1
itest: add itest for field modification HTLC interception response
Implement an integration test where an HTLC is intercepted and the
interception response modifies fields in the resultant p2p message.
2024-05-15 16:47:47 +01:00
ffranr
bd5de434ab
routerrpc: extend HTLC forward interceptor resp with modification fields
This commit extends the forward HTLC intercept response with fields that
can be used in conjunction with a `ResumeModified` action to modify the
intercepted HTLC p2p message.
2024-05-15 16:47:47 +01:00
ffranr
31ee27435a
htlcswitch: add resume modified HTLC action to switch
Introduce `ResumeModified` action to resume standard behavior of a p2p
message with optional modifications as specified by the client during
interception.
2024-05-15 16:47:10 +01:00
ffranr
406fbe243e
lnwire: specify random fields for UpdateFulfillHTLC message in fuzz test
This commit defines random fields for the `UpdateFulfillHTLC` message
as part of the encode/decode unit tests.
2024-05-15 16:47:10 +01:00
ffranr
5c3f7bec0f
lnwire: add encoding/decoding unit tests for UpdateFulfillHTLC message 2024-05-15 16:47:10 +01:00
ffranr
d247cc9498
lnwire: add custom records field to type UpdateFulfillHtlc
- Introduce the field `CustomRecords` to the type `UpdateFulfillHtlc`.
- Encode and decode the new field into the `ExtraData` field of the
`update_fulfill_htlc` wire message.
- Empty `ExtraData` field is set to `nil`.
2024-05-15 16:47:10 +01:00
ffranr
6fa2db0663
lnwire: rand CustomRecords for UpdateAddHTLC encode/decode fuzz test
This commit adds a random `CustomRecords` field to the `UpdateAddHTLC`
message encode/decode unit test.
2024-05-15 16:47:09 +01:00
ffranr
b93d2885e3
lnwire: add encoding/decoding unit tests for UpdateAddHtlc message 2024-05-15 16:47:09 +01:00
ffranr
2b3618c14d
lnwire: add custom records field to type UpdateAddHtlc
- Introduce the field `CustomRecords` to the type `UpdateAddHtlc`.
- Encode and decode the new field into the `ExtraData` field of
  the `update_add_htlc` wire message.
2024-05-15 16:47:09 +01:00
ffranr
41a5b9abf8
lnwire: add ExtraOpaqueData helper functions and methods
- Add instance constructor `NewExtraOpaqueDataFromTlvTypeMap`.
- Add method `Copy`.
- Add method `RecordProducers`.
2024-05-15 16:47:08 +01:00
ffranr
795aff5f42
lnwire: add unit tests for ExtraOpaqueData.PackRecords 2024-05-15 16:47:08 +01:00
ffranr
71c32511dd
lnwire: add type CustomRecords
This commit introduces the `CustomRecords` type in the `lnwire` package,
designed to hold arbitrary byte slices. Each entry in this map can
associate with TLV type values that are greater than or equal to 65536.
2024-05-15 16:47:08 +01:00
ffranr
8b1d9c9248
htlcswitch: add missing method doc 2024-05-14 11:57:17 +01:00
ffranr
043f6963e8
multi: improve comment grammar 2024-05-14 11:57:16 +01:00
Oliver Gugger
9d358bc649
Merge pull request #8748 from guggero/custom-tlv-types
tlv: generate TLV types for custom ranges
2024-05-14 09:02:32 +02:00
Oliver Gugger
454f56d4a8
tlv: generate TLV types for custom ranges 2024-05-14 08:16:42 +02:00