Skip to content

Commit 97b3fc0

Browse files
Synessoampagent
andcommitted
Adapt NextMessageHop serialization to 0.2.3 fork ser macros
The upstream lightningdevkit#4682 commits use impl_ser_tlv_based_enum!, which does not exist on the 0.2.3_fork base. Use the fork's equivalent impl_writeable_tlv_based_enum!, which supports the same tuple-variant syntax and produces a self-consistent Readable/Writeable impl. Amp-Thread-ID: https://ampcode.com/threads/T-019f1bf1-a8e4-745c-8492-3d1c9ff270a0 Co-authored-by: Amp <amp@ampcode.com>
1 parent ca19b7c commit 97b3fc0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lightning/src/blinded_path/message.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ pub enum NextMessageHop {
258258
ShortChannelId(u64),
259259
}
260260

261-
impl_ser_tlv_based_enum!(NextMessageHop,
261+
impl_writeable_tlv_based_enum!(NextMessageHop,
262262
{0, NodeId} => (),
263263
{2, ShortChannelId} => (),
264264
);

0 commit comments

Comments
 (0)