@@ -3184,8 +3184,8 @@ impl<Signer: Sign, M: Deref, T: Deref, K: Deref, F: Deref, L: Deref> ChannelMana
3184
3184
{
3185
3185
/// Updates channel state based on transactions seen in a connected block.
3186
3186
pub fn block_connected ( & self , header : & BlockHeader , txdata : & TransactionData , height : u32 ) {
3187
- let header_hash = header. block_hash ( ) ;
3188
- log_trace ! ( self . logger, "Block {} at height {} connected" , header_hash , height) ;
3187
+ let block_hash = header. block_hash ( ) ;
3188
+ log_trace ! ( self . logger, "Block {} at height {} connected" , block_hash , height) ;
3189
3189
let _persistence_guard = PersistenceNotifierGuard :: new ( & self . total_consistency_lock , & self . persistence_notifier ) ;
3190
3190
let mut failed_channels = Vec :: new ( ) ;
3191
3191
let mut timed_out_htlcs = Vec :: new ( ) ;
@@ -3279,7 +3279,7 @@ impl<Signer: Sign, M: Deref, T: Deref, K: Deref, F: Deref, L: Deref> ChannelMana
3279
3279
self . fail_htlc_backwards_internal ( self . channel_state . lock ( ) . unwrap ( ) , source, & payment_hash, reason) ;
3280
3280
}
3281
3281
self . latest_block_height . store ( height as usize , Ordering :: Release ) ;
3282
- * self . last_block_hash . try_lock ( ) . expect ( "block_(dis)connected must not be called in parallel" ) = header_hash ;
3282
+ * self . last_block_hash . try_lock ( ) . expect ( "block_(dis)connected must not be called in parallel" ) = block_hash ;
3283
3283
loop {
3284
3284
// Update last_node_announcement_serial to be the max of its current value and the
3285
3285
// block timestamp. This should keep us close to the current time without relying on
0 commit comments