@@ -1514,12 +1514,12 @@ impl_writeable!(ChannelAnnouncement, {
1514
1514
1515
1515
impl Writeable for UnsignedChannelUpdate {
1516
1516
fn write < W : Writer > ( & self , w : & mut W ) -> Result < ( ) , io:: Error > {
1517
- // `must_be_one ` used to be `message_flags` but was deprecated in the spec.
1518
- const MUST_BE_ONE : u8 = 1 ;
1517
+ // `message_flags ` used to indicate presence of `htlc_maximum_msat`, but was deprecated in the spec.
1518
+ const MESSAGE_FLAGS : u8 = 1 ;
1519
1519
self . chain_hash . write ( w) ?;
1520
1520
self . short_channel_id . write ( w) ?;
1521
1521
self . timestamp . write ( w) ?;
1522
- let all_flags = self . flags as u16 | ( ( MUST_BE_ONE as u16 ) << 8 ) ;
1522
+ let all_flags = self . flags as u16 | ( ( MESSAGE_FLAGS as u16 ) << 8 ) ;
1523
1523
all_flags. write ( w) ?;
1524
1524
self . cltv_expiry_delta . write ( w) ?;
1525
1525
self . htlc_minimum_msat . write ( w) ?;
@@ -1539,7 +1539,7 @@ impl Readable for UnsignedChannelUpdate {
1539
1539
timestamp : Readable :: read ( r) ?,
1540
1540
flags : {
1541
1541
let flags: u16 = Readable :: read ( r) ?;
1542
- // Note: we ignore `must_be_one`, formely `message_flags`, since it was deprecated by the spec.
1542
+ // Note: we ignore the `message_flags` for now , since it was deprecated by the spec.
1543
1543
flags as u8
1544
1544
} ,
1545
1545
cltv_expiry_delta : Readable :: read ( r) ?,
0 commit comments