Skip to content

Commit

Permalink
Additional cleanup in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
psolstice committed Jan 22, 2024
1 parent fc496f4 commit ec1b54e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/test/evospork_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -442,13 +442,16 @@ struct SparkSporkTestingSetup : public SparkTestingSetup

SparkSporkTestingSetup() : SparkTestingSetup(), mutableParams(const_cast<Consensus::Params&>(Params().GetConsensus()))
{
spark::CSparkState::GetState()->Reset();
mempool.clear();
originalParams = mutableParams;
mutableParams.nEvoSporkStopBlock = 2000;
}

~SparkSporkTestingSetup() {
mutableParams = originalParams;
spark::CSparkState::GetState()->Reset();
mempool.clear();
}

};
Expand Down

0 comments on commit ec1b54e

Please sign in to comment.