yyforyongyu
7a9f197de8
lnwire: simplify dyn decode methods
...
Remove the unnecessary convertions as suggested by Gemini.
2025-07-11 04:11:31 +03:00
yyforyongyu
5961f7a1bd
lnwire: add method ParseAndExtractExtraData
...
Similar to `ParseAndExtractCustomRecords`, we now add this helper method
to make sure the extra data is parsed correctly.
2025-07-11 04:11:30 +03:00
yyforyongyu
e94ca84449
lnwire: fix encoding of MilliSatoshi
...
`MilliSatoshi` itself is already a `BigSize`, we just need to change the
decoding and encoding types to use that.
2025-07-11 04:11:29 +03:00
yyforyongyu
5e9365552c
lnwire: fix encoding ExtraData
in DynPropose
...
Previously we encode all the fields plus extra data to the field
`ExtraData`, this is now fixed by encoding only unknown data to extra
data. For known records, they are already encoded into the message
fields.
2025-07-11 04:11:29 +03:00
yyforyongyu
0f1cb54eb2
lnwire: use BigSize
for encoding btc amount
2025-07-11 04:09:11 +03:00
yyforyongyu
c64e3a6c34
lnwire: fix linter
2025-06-25 14:53:22 +08:00
Keagan McClelland
a72cadf2ed
lnwire: convert DynPropose and DynCommit to use typed tlv records
2025-06-25 02:22:22 +08:00
Keagan McClelland
79e4e74447
lnwire: change DynPropose/DynCommit TLV numbers to align with spec
2025-06-25 02:09:08 +08:00
Keagan McClelland
72582d4acc
lnwire: add HtlcMinimum to DynPropose and DynCommit
2025-06-25 02:08:58 +08:00
Keagan McClelland
f40530e4f4
lnwire: remove FundingKey from DynPropose and DynCommit
2025-06-25 02:08:56 +08:00
Keagan McClelland
cbca5b1152
lnwire: remove kickoff feerate from propose/commit
2025-06-25 02:08:22 +08:00
Keagan McClelland
36f53d74ab
lnwire: add convenience functions for protocol validation
2025-06-25 02:06:16 +08:00
Keagan McClelland
c6861770de
lnwire: remove no longer used initiator field
2025-06-25 01:10:46 +08:00
Olaoluwa Osuntokun
56a100123b
lnwire: add new SerializedSize method to all wire messages
...
This'll be useful for the bandwidth based rate limiting we'll implement
in the next commit.
2025-03-20 18:27:52 -07:00
Keagan McClelland
ed2989ae33
multi: update to fn v2
2024-12-04 13:19:00 -07:00
Keagan McClelland
e5f7ed8ba1
lnwire: introduce message types for dynamic commitment negotiation
...
lnwire: add tests for dynamic commitment wire serialization
2023-11-10 13:29:30 -08:00