Page MenuHomePhabricator

Fix BlockToJsonVerbose benchmark
ClosedPublic

Authored by PiRK on Jan 24 2023, 09:55.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABC0724708e0da8: Fix BlockToJsonVerbose benchmark
Summary

Currently it was not possible to run just the BlockToJsonVerboes benchmarsk because it did not set up everything it needed, running bench_bitcoin -filter=BlockToJsonVerbose caused this assert to fail:

bench_bitcoin: chainparams.cpp:506: const CChainParams& Params(): Assertion `globalChainParams' failed.

Initializing TestingSetup fixes this.

This is a backport of core#20998

Test Plan
ninja bench-bitcoin
src/bench/bitcoin-bench -filter=BlockToJsonVerbose

Event Timeline

PiRK requested review of this revision.Jan 24 2023, 09:55
Fabien requested changes to this revision.Jan 24 2023, 10:18
Fabien added a subscriber: Fabien.

wrong pr

This revision now requires changes to proceed.Jan 24 2023, 10:18
PiRK requested review of this revision.Jan 24 2023, 10:20
PiRK edited the summary of this revision. (Show Details)
Fabien added inline comments.
src/bench/rpc_blockchain.cpp
10–14
This revision is now accepted and ready to land.Jan 24 2023, 10:22
This revision was automatically updated to reflect the committed changes.