mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-01-12 22:43:42 +08:00
Fix var name to be header rather than id
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
This commit is contained in:
committed by
jferrant
parent
9ecfc9f3d6
commit
eae6935784
@@ -694,14 +694,14 @@ impl BlockMinerThread {
|
||||
if self.mined_blocks.is_empty() {
|
||||
// We could call this even if self.mined_blocks was not empty, but would return the same value, so save the effort and only do it when necessary.
|
||||
// If we are starting a new tenure, then make sure we are building off of the last block of our parent tenure
|
||||
if let Some(last_tenure_finish_block_id) =
|
||||
if let Some(last_tenure_finish_block_header) =
|
||||
NakamotoChainState::get_nakamoto_tenure_finish_block_header(
|
||||
chain_state.db(),
|
||||
&stacks_tip_header.consensus_hash,
|
||||
)
|
||||
.expect("FATAL: could not query parent tenure finish block")
|
||||
{
|
||||
stacks_tip_header = last_tenure_finish_block_id;
|
||||
stacks_tip_header = last_tenure_finish_block_header;
|
||||
}
|
||||
}
|
||||
let miner_address = self
|
||||
|
||||
Reference in New Issue
Block a user