Skip to content

Commit 5704e8e

Browse files
committed
Note why we don't use update_for_new_tip in offers flow block upd
1 parent 417b065 commit 5704e8e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lightning/src/offers/flow.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,8 @@ impl<MR: MessageRouter, L: Logger> OffersMessageFlow<MR, L> {
187187
let timestamp = &self.highest_seen_timestamp;
188188
let block_time = header.time as usize;
189189

190+
// Note that we deliberately don't use `update_for_new_tip` as we dont rely on receiving
191+
// disconnection information instead expecting to simply "jump" to the new tip.
190192
*self.best_block.write().unwrap() = BestBlock::new(header.block_hash(), height);
191193

192194
loop {

0 commit comments

Comments
 (0)