mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-22 03:48:55 +01:00
Call SHA256AutoDetect in benchmark setup
This commit is contained in:
@@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
#include <bench/bench.h>
|
#include <bench/bench.h>
|
||||||
|
|
||||||
|
#include <crypto/sha256.h>
|
||||||
#include <util/strencodings.h>
|
#include <util/strencodings.h>
|
||||||
#include <util/system.h>
|
#include <util/system.h>
|
||||||
|
|
||||||
@@ -35,6 +36,7 @@ int main(int argc, char** argv)
|
|||||||
{
|
{
|
||||||
ArgsManager argsman;
|
ArgsManager argsman;
|
||||||
SetupBenchArgs(argsman);
|
SetupBenchArgs(argsman);
|
||||||
|
SHA256AutoDetect();
|
||||||
std::string error;
|
std::string error;
|
||||||
if (!argsman.ParseParameters(argc, argv, error)) {
|
if (!argsman.ParseParameters(argc, argv, error)) {
|
||||||
tfm::format(std::cerr, "Error parsing command line arguments: %s\n", error);
|
tfm::format(std::cerr, "Error parsing command line arguments: %s\n", error);
|
||||||
|
|||||||
Reference in New Issue
Block a user