]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Use constant in QueryChannelRange::end_blocknum
authorbmancini55 <bmancini@gmail.com>
Wed, 10 Mar 2021 11:46:44 +0000 (06:46 -0500)
committerbmancini55 <bmancini@gmail.com>
Wed, 10 Mar 2021 11:46:44 +0000 (06:46 -0500)
Clarifies u32 max value used as the default.

lightning/src/ln/msgs.rs

index 9fb3a069570424cad1c5fcf6ed2db4cba19ef1b4..a9c4bc3d6f545c3ceda25ce4795d11aac9ecde91 100644 (file)
@@ -1690,7 +1690,7 @@ impl QueryChannelRange {
        pub fn end_blocknum(&self) -> u32 {
                match self.first_blocknum.checked_add(self.number_of_blocks) {
                        Some(block) => block,
-                       None => 0xffffffff,
+                       None => u32::max_value(),
                }
        }
 }