@@ -3254,8 +3254,8 @@ impl<Signer: Sign, M: Deref, T: Deref, K: Deref, F: Deref, L: Deref> ChannelMana
3254
3254
// Note that we MUST NOT end up calling methods on self.chain_monitor here - we're called
3255
3255
// during initialization prior to the chain_monitor being fully configured in some cases.
3256
3256
// See the docs for `ChannelManagerReadArgs` for more.
3257
- let header_hash = header. block_hash ( ) ;
3258
- log_trace ! ( self . logger, "Block {} at height {} connected" , header_hash , height) ;
3257
+ let block_hash = header. block_hash ( ) ;
3258
+ log_trace ! ( self . logger, "Block {} at height {} connected" , block_hash , height) ;
3259
3259
let _persistence_guard = PersistenceNotifierGuard :: new ( & self . total_consistency_lock , & self . persistence_notifier ) ;
3260
3260
let mut failed_channels = Vec :: new ( ) ;
3261
3261
let mut timed_out_htlcs = Vec :: new ( ) ;
@@ -3346,7 +3346,7 @@ impl<Signer: Sign, M: Deref, T: Deref, K: Deref, F: Deref, L: Deref> ChannelMana
3346
3346
self . fail_htlc_backwards_internal ( self . channel_state . lock ( ) . unwrap ( ) , source, & payment_hash, reason) ;
3347
3347
}
3348
3348
self . latest_block_height . store ( height as usize , Ordering :: Release ) ;
3349
- * self . last_block_hash . try_lock ( ) . expect ( "block_(dis)connected must not be called in parallel" ) = header_hash ;
3349
+ * self . last_block_hash . try_lock ( ) . expect ( "block_(dis)connected must not be called in parallel" ) = block_hash ;
3350
3350
loop {
3351
3351
// Update last_node_announcement_serial to be the max of its current value and the
3352
3352
// block timestamp. This should keep us close to the current time without relying on
0 commit comments