Skip to content

Commit 5618b7d

Browse files
committed
Do not shadow upper local variable state.
1 parent 1d4805c commit 5618b7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/txvalidationcache_tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,8 @@ BOOST_FIXTURE_TEST_CASE(checkinputs_test, TestChain100Setup)
196196
// Test that invalidity under a set of flags doesn't preclude validity
197197
// under other (eg consensus) flags.
198198
// spend_tx is invalid according to DERSIG
199-
CValidationState state;
200199
{
200+
CValidationState state;
201201
PrecomputedTransactionData ptd_spend_tx(spend_tx);
202202

203203
BOOST_CHECK(!CheckInputs(spend_tx, state, pcoinsTip, true, SCRIPT_VERIFY_P2SH | SCRIPT_VERIFY_DERSIG, true, true, ptd_spend_tx, nullptr));

0 commit comments

Comments
 (0)