Skip to content

Commit a5a20e8

Browse files
committed
[Tests] Add check for tip != pblock in zerocoin_rejection_tests
1 parent f7a93cd commit a5a20e8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/test/validation_tests.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ void CheckBlockZcRejection(std::shared_ptr<CBlock>& pblock, int nHeight, CMutabl
103103
BOOST_CHECK(!ProcessNewBlock(pblock, nullptr));
104104
BOOST_CHECK(stateCatcher.found && !stateCatcher.state.IsValid());
105105
BOOST_CHECK_EQUAL(stateCatcher.state.GetRejectReason(), expected_msg);
106+
BOOST_CHECK(WITH_LOCK(cs_main, return chainActive.Tip()->GetBlockHash(); ) != pblock->GetHash());
106107
}
107108

108109
void CheckMempoolZcRejection(CMutableTransaction& mtx, const std::string& expected_msg)

0 commit comments

Comments
 (0)