Skip to content

Commit

Permalink
fix: nakamoto autotest fix
Browse files Browse the repository at this point in the history
  • Loading branch information
fess-v committed Nov 27, 2023
1 parent 2a001ae commit 92bbea9
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions stackslib/src/chainstate/nakamoto/tests/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -570,18 +570,13 @@ pub fn test_load_store_update_nakamoto_blocks() {
tx.commit().unwrap();
}

let epoch_id = SortitionDB::get_stacks_epoch(chainstate.db(), nakamoto_header.chain_length)
.unwrap()
.unwrap()
.epoch_id;

// can load Nakamoto block, but only the Nakamoto block
assert_eq!(
NakamotoChainState::load_nakamoto_block(
chainstate.db(),
&nakamoto_header.consensus_hash,
&nakamoto_header.block_hash(),
epoch_id,
StacksEpochId::latest(),
)
.unwrap()
.unwrap(),
Expand All @@ -592,7 +587,7 @@ pub fn test_load_store_update_nakamoto_blocks() {
chainstate.db(),
&epoch2_header_info.consensus_hash,
&epoch2_header.block_hash(),
epoch_id,
StacksEpochId::latest(),
)
.unwrap(),
None
Expand Down

0 comments on commit 92bbea9

Please sign in to comment.