test: Move variable `state` down where it is used #10739

Merged
merged 1 commit into from Jul 16, 2017
Jump to file or symbol
Failed to load files and symbols.
+1 −1
Split
@@ -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;
@promag

promag Jul 8, 2017

Contributor

Leave the old line?

@paveljanik

paveljanik Jul 8, 2017

Contributor

You mean with unchanged indentation? Or?

@promag

promag Jul 8, 2017

Contributor

Ignore, it's good.

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));