diff options
author | Pavel Janík <Pavel@Janik.cz> | 2017-07-04 10:08:43 +0200 |
---|---|---|
committer | Pavel Janík <Pavel@Janik.cz> | 2017-07-08 09:30:35 +0200 |
commit | 5618b7d1ad3f2a258d46cf67b732ffddd3f34cb6 (patch) | |
tree | 0e059da8c78c2bcd6c89b1b9d99f2816fb0534bb /src/test | |
parent | 1d4805ce04645f3203b0cfd3d66ea710e7433eb4 (diff) |
Do not shadow upper local variable `state`.
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/txvalidationcache_tests.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/txvalidationcache_tests.cpp b/src/test/txvalidationcache_tests.cpp index a74f40251a..f609cb1af4 100644 --- a/src/test/txvalidationcache_tests.cpp +++ b/src/test/txvalidationcache_tests.cpp @@ -196,8 +196,8 @@ BOOST_FIXTURE_TEST_CASE(checkinputs_test, TestChain100Setup) // Test that invalidity under a set of flags doesn't preclude validity // under other (eg consensus) flags. // spend_tx is invalid according to DERSIG - CValidationState state; { + CValidationState state; PrecomputedTransactionData ptd_spend_tx(spend_tx); BOOST_CHECK(!CheckInputs(spend_tx, state, pcoinsTip, true, SCRIPT_VERIFY_P2SH | SCRIPT_VERIFY_DERSIG, true, true, ptd_spend_tx, nullptr)); |