Call SHA256AutoDetect in benchmark setup

This commit is contained in:
Pieter Wuille 2020-06-08 11:24:42 -07:00
parent a79bca2f1f
commit addf18da95

View file

@ -4,6 +4,7 @@
#include <bench/bench.h>
#include <crypto/sha256.h>
#include <util/strencodings.h>
#include <util/system.h>
@ -35,6 +36,7 @@ int main(int argc, char** argv)
{
ArgsManager argsman;
SetupBenchArgs(argsman);
SHA256AutoDetect();
std::string error;
if (!argsman.ParseParameters(argc, argv, error)) {
tfm::format(std::cerr, "Error parsing command line arguments: %s\n", error);