Skip to content

Commit 176a487

Browse files
committed
f I'm an idiot
1 parent 2665c6a commit 176a487

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6593,6 +6593,10 @@ impl<Signer: Sign, M: Deref, T: Deref, K: Deref, F: Deref, L: Deref> Writeable f
65936593
}
65946594
}
65956595

6596+
// Prior to 0.0.110 we tracked node_announcement serials here, however that now happens in
6597+
// `PeerManager`, and thus we simply write the `highest_seen_timestamp` twice, which is
6598+
// likely to be identical.
6599+
(self.highest_seen_timestamp.load(Ordering::Acquire) as u32).write(writer)?;
65966600
(self.highest_seen_timestamp.load(Ordering::Acquire) as u32).write(writer)?;
65976601

65986602
(pending_inbound_payments.len() as u64).write(writer)?;
@@ -6911,6 +6915,7 @@ impl<'a, Signer: Sign, M: Deref, T: Deref, K: Deref, F: Deref, L: Deref>
69116915
}
69126916
}
69136917

6918+
let _last_node_announcement_serial: u32 = Readable::read(reader)?; // Only used < 0.0.110
69146919
let highest_seen_timestamp: u32 = Readable::read(reader)?;
69156920

69166921
let pending_inbound_payment_count: u64 = Readable::read(reader)?;

0 commit comments

Comments
 (0)