mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 01:24:26 +01:00
common: assume htlc_maximum_msat, don't check bit any more.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -251,11 +251,7 @@ class ChannelUpdate(object):
|
||||
(cu.htlc_minimum_msat,) = struct.unpack("!Q", b.read(8))
|
||||
(cu.fee_base_msat,) = struct.unpack("!I", b.read(4))
|
||||
(cu.fee_proportional_millionths,) = struct.unpack("!I", b.read(4))
|
||||
t = b.read(8)
|
||||
if len(t) == 8:
|
||||
(cu.htlc_maximum_msat,) = struct.unpack("!Q", t)
|
||||
else:
|
||||
cu.htlc_maximum_msat = None
|
||||
(cu.htlc_maximum_msat,) = struct.unpack("!Q", b.read(8))
|
||||
|
||||
return cu
|
||||
|
||||
|
||||
Reference in New Issue
Block a user