HomePhabricator

test: Remove const to work around compiler error on xenial

Description

test: Remove const to work around compiler error on xenial

Summary:

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;

This is a backport of Core PR18975

Test Plan: ninja check

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Differential Revision: https://reviews.bitcoinabc.org/D9116

Details

Provenance
Wladimir J. van der Laan <laanwj@protonmail.com>Authored on Feb 1 2021, 10:52
PiRKCommitted on Feb 1 2021, 10:53
abc-botPushed on Feb 1 2021, 10:57
Reviewer
Restricted Project
Differential Revision
D9116: test: Remove const to work around compiler error on xenial
Parents
rABC6731f60abe1a: Add templated GetRandomDuration<>
Branches
Unknown
Tags
Unknown