diff options
author | Jeffrey Czyz <jkczyz@gmail.com> | 2019-11-08 13:22:36 -0800 |
---|---|---|
committer | Jeffrey Czyz <jkczyz@gmail.com> | 2020-02-27 17:59:07 -0800 |
commit | 0aed17ef2892478c28cd660e53223c6dd1dc0187 (patch) | |
tree | dc2290695c6d65e7917df9d83e8e4da5f5ce6e1a /src/test | |
parent | fe63d79eabf1a9a0084d43802620d34f383aa358 (diff) |
Refactor FormatStateMessage into ValidationState
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/util/setup_common.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/test/util/setup_common.cpp b/src/test/util/setup_common.cpp index 360377e58a..fc736bc3a1 100644 --- a/src/test/util/setup_common.cpp +++ b/src/test/util/setup_common.cpp @@ -25,7 +25,6 @@ #include <util/strencodings.h> #include <util/time.h> #include <util/translation.h> -#include <util/validation.h> #include <validation.h> #include <validationinterface.h> @@ -123,7 +122,7 @@ TestingSetup::TestingSetup(const std::string& chainName) : BasicTestingSetup(cha BlockValidationState state; if (!ActivateBestChain(state, chainparams)) { - throw std::runtime_error(strprintf("ActivateBestChain failed. (%s)", FormatStateMessage(state))); + throw std::runtime_error(strprintf("ActivateBestChain failed. (%s)", state.ToString())); } // Start script-checking threads. Set g_parallel_script_checks to true so they are used. |