diff options
author | Wladimir J. van der Laan <laanwj@protonmail.com> | 2020-05-14 18:31:57 +0200 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2020-05-15 08:08:15 +0800 |
commit | cf2a6e2a390ad18a616d7f2718688375f2576577 (patch) | |
tree | f27e65e63a255409742f0551d441da752bc5f4f4 /src/test | |
parent | cc7d34465bbb0195d8bcd9143097840a2e9765f2 (diff) | |
download | bitcoin-cf2a6e2a390ad18a616d7f2718688375f2576577.tar.xz |
test: Remove const to work around compiler error on xenial
Fix the following error in travis:
test/validationinterface_tests.cpp:26:36: error: default initialization of an object of const type 'const BlockValidationState' without a user-provided default constructor
const BlockValidationState state_dummy;
Github-Pull: #18975
Rebased-From: 050e2ee6f28e7b31c167013be7313726e34084e9
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/validationinterface_tests.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/validationinterface_tests.cpp b/src/test/validationinterface_tests.cpp index d2fc20e625..ceba689e52 100644 --- a/src/test/validationinterface_tests.cpp +++ b/src/test/validationinterface_tests.cpp @@ -23,7 +23,7 @@ BOOST_AUTO_TEST_CASE(unregister_validation_interface_race) // Start thread to generate notifications std::thread gen{[&] { const CBlock block_dummy; - const BlockValidationState state_dummy; + BlockValidationState state_dummy; while (generate) { GetMainSignals().BlockChecked(block_dummy, state_dummy); } |