Skip to content

Commit 81131a0

Browse files
committed
Rename header_hash to block_hash
1 parent 6bdd3a3 commit 81131a0

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
@@ -3184,8 +3184,8 @@ impl<Signer: Sign, M: Deref, T: Deref, K: Deref, F: Deref, L: Deref> ChannelMana
31843184
{
31853185
/// Updates channel state based on transactions seen in a connected block.
31863186
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);
31893189
let _persistence_guard = PersistenceNotifierGuard::new(&self.total_consistency_lock, &self.persistence_notifier);
31903190
let mut failed_channels = Vec::new();
31913191
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
32793279
self.fail_htlc_backwards_internal(self.channel_state.lock().unwrap(), source, &payment_hash, reason);
32803280
}
32813281
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;
32833283
loop {
32843284
// Update last_node_announcement_serial to be the max of its current value and the
32853285
// block timestamp. This should keep us close to the current time without relying on

0 commit comments

Comments
 (0)