From 92bbea927c8b482239f5a97d752c58ab14bb8f38 Mon Sep 17 00:00:00 2001 From: Fess Date: Mon, 27 Nov 2023 20:54:47 +0400 Subject: [PATCH] fix: nakamoto autotest fix --- stackslib/src/chainstate/nakamoto/tests/mod.rs | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/stackslib/src/chainstate/nakamoto/tests/mod.rs b/stackslib/src/chainstate/nakamoto/tests/mod.rs index 09f9289408..70c479ff6a 100644 --- a/stackslib/src/chainstate/nakamoto/tests/mod.rs +++ b/stackslib/src/chainstate/nakamoto/tests/mod.rs @@ -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(), @@ -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