We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 477ddb5 commit de7139dCopy full SHA for de7139d
lightning-rapid-gossip-sync/src/processing.rs
@@ -54,7 +54,7 @@ pub(crate) fn update_network_graph_from_byte_stream<R: Read>(
54
let chain_hash: BlockHash = Readable::read(read_cursor)?;
55
let latest_seen_timestamp: u32 = Readable::read(read_cursor)?;
56
// backdate the applied timestamp by a week
57
- let backdated_timestamp = latest_seen_timestamp - 24 * 3600 * 7;
+ let backdated_timestamp = latest_seen_timestamp.saturating_sub(24 * 3600 * 7);
58
59
let node_id_count: u32 = Readable::read(read_cursor)?;
60
let mut node_ids: Vec<PublicKey> = Vec::with_capacity(std::cmp::min(
0 commit comments