diff options
author | Jorge Timón <jtimon@jtimon.cc> | 2015-11-28 15:04:35 +0100 |
---|---|---|
committer | Jorge Timón <jtimon@jtimon.cc> | 2017-05-03 18:15:54 +0200 |
commit | 2351a064a604f5aa961a38a3920289546dada16f (patch) | |
tree | 6878027b39f34a4de14fa14b89304e11be322357 /src/bench/checkblock.cpp | |
parent | f87f3626e35e7edae37e14f5156809325ad18cb2 (diff) |
Chainparams: Get rid of CChainParams& Params(std::string)
Diffstat (limited to 'src/bench/checkblock.cpp')
-rw-r--r-- | src/bench/checkblock.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bench/checkblock.cpp b/src/bench/checkblock.cpp index c6c932454a..195388839e 100644 --- a/src/bench/checkblock.cpp +++ b/src/bench/checkblock.cpp @@ -40,7 +40,7 @@ static void DeserializeAndCheckBlockTest(benchmark::State& state) char a = '\0'; stream.write(&a, 1); // Prevent compaction - Consensus::Params params = Params(CBaseChainParams::MAIN).GetConsensus(); + const auto chainParams = CreateChainParams(CBaseChainParams::MAIN); while (state.KeepRunning()) { CBlock block; // Note that CBlock caches its checked state, so we need to recreate it here @@ -48,7 +48,7 @@ static void DeserializeAndCheckBlockTest(benchmark::State& state) assert(stream.Rewind(sizeof(block_bench::block413567))); CValidationState validationState; - assert(CheckBlock(block, validationState, params)); + assert(CheckBlock(block, validationState, chainParams->GetConsensus())); } } |