mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-20 13:37:28 +02:00
Do not shadow upper local variable state.
This commit is contained in:
parent
1d4805ce04
commit
5618b7d1ad
1 changed files with 1 additions and 1 deletions
|
|
@ -196,8 +196,8 @@ BOOST_FIXTURE_TEST_CASE(checkinputs_test, TestChain100Setup)
|
||||||
// Test that invalidity under a set of flags doesn't preclude validity
|
// Test that invalidity under a set of flags doesn't preclude validity
|
||||||
// under other (eg consensus) flags.
|
// under other (eg consensus) flags.
|
||||||
// spend_tx is invalid according to DERSIG
|
// spend_tx is invalid according to DERSIG
|
||||||
CValidationState state;
|
|
||||||
{
|
{
|
||||||
|
CValidationState state;
|
||||||
PrecomputedTransactionData ptd_spend_tx(spend_tx);
|
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));
|
BOOST_CHECK(!CheckInputs(spend_tx, state, pcoinsTip, true, SCRIPT_VERIFY_P2SH | SCRIPT_VERIFY_DERSIG, true, true, ptd_spend_tx, nullptr));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue