Skip to content

Commit 1809ef1

Browse files
committed
Use constant in QueryChannelRange::end_blocknum
Clarifies u32 max value used as the default.
1 parent deffb4a commit 1809ef1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning/src/ln/msgs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1690,7 +1690,7 @@ impl QueryChannelRange {
16901690
pub fn end_blocknum(&self) -> u32 {
16911691
match self.first_blocknum.checked_add(self.number_of_blocks) {
16921692
Some(block) => block,
1693-
None => 0xffffffff,
1693+
None => u32::max_value(),
16941694
}
16951695
}
16961696
}

0 commit comments

Comments
 (0)