mirror of
https://github.com/lightningdevkit/rust-lightning.git
synced 2025-02-25 07:17:40 +01:00
Use constant in QueryChannelRange::end_blocknum
Clarifies u32 max value used as the default.
This commit is contained in:
parent
deffb4a3d8
commit
1809ef199e
1 changed files with 1 additions and 1 deletions
|
@ -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(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue