Skip to content

Commit d4307e0

Browse files
committed
trivial changes to fix clippy::inconsistent_digit_grouping warnings
1 parent 52121ea commit d4307e0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lightning/src/chain/channelmonitor.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1671,9 +1671,9 @@ impl<ChanSigner: ChannelKeys> ChannelMonitor<ChanSigner> {
16711671
for tx in &txn_matched {
16721672
let mut output_val = 0;
16731673
for out in tx.output.iter() {
1674-
if out.value > 21_000_000_0000_0000 { panic!("Value-overflowing transaction provided to block connected"); }
1674+
if out.value > 2_100_000_000_000_000 { panic!("Value-overflowing transaction provided to block connected"); }
16751675
output_val += out.value;
1676-
if output_val > 21_000_000_0000_0000 { panic!("Value-overflowing transaction provided to block connected"); }
1676+
if output_val > 2_100_000_000_000_000 { panic!("Value-overflowing transaction provided to block connected"); }
16771677
}
16781678
}
16791679

lightning/src/ln/msgs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ use util::ser::{Readable, Writeable, Writer, FixedLengthReader, HighZeroBytesDro
4141
use ln::channelmanager::{PaymentPreimage, PaymentHash, PaymentSecret};
4242

4343
/// 21 million * 10^8 * 1000
44-
pub(crate) const MAX_VALUE_MSAT: u64 = 21_000_000_0000_0000_000;
44+
pub(crate) const MAX_VALUE_MSAT: u64 = 2_100_000_000_000_000_000;
4545

4646
/// An error in decoding a message or struct.
4747
#[derive(Debug)]

0 commit comments

Comments
 (0)