Skip to content

Commit c2cad5d

Browse files
committed
f I'm an idiot
1 parent a9af90b commit c2cad5d

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
@@ -6597,6 +6597,10 @@ impl<Signer: Sign, M: Deref, T: Deref, K: Deref, F: Deref, L: Deref> Writeable f
65976597
}
65986598
}
65996599

6600+
// Prior to 0.0.110 we tracked node_announcement serials here, however that now happens in
6601+
// `PeerManager`, and thus we simply write the `highest_seen_timestamp` twice, which is
6602+
// likely to be identical.
6603+
(self.highest_seen_timestamp.load(Ordering::Acquire) as u32).write(writer)?;
66006604
(self.highest_seen_timestamp.load(Ordering::Acquire) as u32).write(writer)?;
66016605

66026606
(pending_inbound_payments.len() as u64).write(writer)?;
@@ -6915,6 +6919,7 @@ impl<'a, Signer: Sign, M: Deref, T: Deref, K: Deref, F: Deref, L: Deref>
69156919
}
69166920
}
69176921

6922+
let _last_node_announcement_serial: u32 = Readable::read(reader)?; // Only used < 0.0.110
69186923
let highest_seen_timestamp: u32 = Readable::read(reader)?;
69196924

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

0 commit comments

Comments
 (0)