Skip to content

Commit a15fd4b

Browse files
SourabhTheBlueMatt
andauthored
Update lightning/src/ln/channelmanager.rs
Co-authored-by: Matt Corallo <[email protected]>
1 parent 06b9927 commit a15fd4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3760,7 +3760,7 @@ impl<'a, ChanSigner: ChannelKeys + Readable, M: Deref, T: Deref, K: Deref, F: De
37603760
}
37613761
}
37623762

3763-
const MAX_ALLOC_SIZE: u64 = 1024 * 64;
3763+
const MAX_ALLOC_SIZE: usize = 1024 * 64;
37643764
let forward_htlcs_count: u64 = Readable::read(reader)?;
37653765
let mut forward_htlcs = HashMap::with_capacity(cmp::min(forward_htlcs_count as usize, (MAX_ALLOC_SIZE as usize)/mem::size_of::<HTLCForwardInfo>()));
37663766
for _ in 0..forward_htlcs_count {

0 commit comments

Comments
 (0)