bolt7

Routing gossip protocol, per BOLT #7 (docs.ppad.tech/bolt7).
git clone git://git.ppad.tech/bolt7.git
Log | Files | Refs | README | LICENSE

commit 6340cb1ef025cff1c99e3a28b6f03ed1c765dee8
parent 95a28c02b08a093ced8d55bb67ed0d15ae7275d0
Author: Jared Tobin <jared@jtobin.io>
Date:   Sat, 10 Oct 2026 14:37:23 +0400

lib: align decode_channel_update bindings

Diffstat:
Mlib/Lightning/Protocol/BOLT7/Codec.hs | 22+++++++++++-----------
1 file changed, 11 insertions(+), 11 deletions(-)

diff --git a/lib/Lightning/Protocol/BOLT7/Codec.hs b/lib/Lightning/Protocol/BOLT7/Codec.hs @@ -303,18 +303,18 @@ encode_channel_update m = -- @message_flags@ is kept but not interpreted. decode_channel_update :: BS.ByteString -> Either DecodeError ChannelUpdate decode_channel_update b0 = do - (sig, b1) <- signature b0 - (ch, b2) <- chain_hash b1 - (s, b3) <- short_channel_id b2 - (ts, b4) <- u32 b3 - (mf, b5) <- u8 b4 - (cf, b6) <- u8 b5 - (cltv, b7) <- u16 b6 - (hmin, b8) <- milli_satoshi b7 - (fb, b9) <- u32 b8 - (fp, b10) <- u32 b9 + (sig, b1) <- signature b0 + (ch, b2) <- chain_hash b1 + (s, b3) <- short_channel_id b2 + (ts, b4) <- u32 b3 + (mf, b5) <- u8 b4 + (cf, b6) <- u8 b5 + (cltv, b7) <- u16 b6 + (hmin, b8) <- milli_satoshi b7 + (fb, b9) <- u32 b8 + (fp, b10) <- u32 b9 (hmax, b11) <- milli_satoshi b10 - ext <- extension b11 + ext <- extension b11 pure ChannelUpdate { cu_signature = sig , cu_chain_hash = ch