You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: stackslib/src/net/p2p.rs
+23-2Lines changed: 23 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -246,6 +246,7 @@ pub struct StacksTipInfo {
246
246
pubconsensus_hash:ConsensusHash,
247
247
pubblock_hash:BlockHeaderHash,
248
248
pubheight:u64,
249
+
pubcoinbase_height:Option<u64>,
249
250
pubis_nakamoto:bool,
250
251
}
251
252
@@ -255,6 +256,7 @@ impl StacksTipInfo {
255
256
consensus_hash:ConsensusHash([0u8;20]),
256
257
block_hash:BlockHeaderHash([0u8;32]),
257
258
height:0,
259
+
coinbase_height:None,
258
260
is_nakamoto:false,
259
261
}
260
262
}
@@ -4218,14 +4220,25 @@ impl PeerNetwork {
4218
4220
4219
4221
let parent_tenure_start_header = NakamotoChainState::get_tenure_start_block_header(&mut chainstate.index_conn(), stacks_tip_block_id,&parent_header.consensus_hash)?
4220
4222
.ok_or_else(|| {
4221
-
debug!("{:?}: get_parent_stacks_tip: No tenure-start block for parent tenure {} off of child {} (parnet {})",self.get_local_peer(),&parent_header.consensus_hash, stacks_tip_block_id,&parent_block_id);
4223
+
debug!("{:?}: get_parent_stacks_tip: No tenure-start block for parent tenure {} off of child {} (parent {})",self.get_local_peer(),&parent_header.consensus_hash, stacks_tip_block_id,&parent_block_id);
4222
4224
net_error::DBError(db_error::NotFoundError)
4223
4225
})?;
4224
4226
4227
+
// TODO: Test this!
4228
+
let parent_stacks_tip_block_hash = parent_tenure_start_header.anchored_header.block_hash();
4229
+
let parent_tenure_start_header_cbh = NakamotoChainState::get_coinbase_height(
0 commit comments