Skip to content

Commit d21d8b3

Browse files
committed
Rename header_hash to block_hash
1 parent 31093ad commit d21d8b3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3255,8 +3255,8 @@ impl<Signer: Sign, M: Deref, T: Deref, K: Deref, F: Deref, L: Deref> ChannelMana
32553255
// Note that we MUST NOT end up calling methods on self.chain_monitor here - we're called
32563256
// during initialization prior to the chain_monitor being fully configured in some cases.
32573257
// See the docs for `ChannelManagerReadArgs` for more.
3258-
let header_hash = header.block_hash();
3259-
log_trace!(self.logger, "Block {} at height {} connected", header_hash, height);
3258+
let block_hash = header.block_hash();
3259+
log_trace!(self.logger, "Block {} at height {} connected", block_hash, height);
32603260
let _persistence_guard = PersistenceNotifierGuard::new(&self.total_consistency_lock, &self.persistence_notifier);
32613261
let mut failed_channels = Vec::new();
32623262
let mut timed_out_htlcs = Vec::new();
@@ -3347,7 +3347,7 @@ impl<Signer: Sign, M: Deref, T: Deref, K: Deref, F: Deref, L: Deref> ChannelMana
33473347
self.fail_htlc_backwards_internal(self.channel_state.lock().unwrap(), source, &payment_hash, reason);
33483348
}
33493349
self.latest_block_height.store(height as usize, Ordering::Release);
3350-
*self.last_block_hash.try_lock().expect("block_(dis)connected must not be called in parallel") = header_hash;
3350+
*self.last_block_hash.try_lock().expect("block_(dis)connected must not be called in parallel") = block_hash;
33513351
loop {
33523352
// Update last_node_announcement_serial to be the max of its current value and the
33533353
// block timestamp. This should keep us close to the current time without relying on

0 commit comments

Comments
 (0)