Fix AreInputsStandard test to reference the proper scriptPubKey

This value doesn't affect the outcome of the test, because the values are
properly set on line 351, but this makes the test values internally coherent.
This commit is contained in:
Ben Woosley 2018-06-28 14:41:21 -04:00
parent c93c360eec
commit f95989b3ed
No known key found for this signature in database
GPG key ID: 6EE5F3785F78B345

View file

@ -309,7 +309,7 @@ BOOST_AUTO_TEST_CASE(AreInputsStandard)
// vout[5/6] are non-standard because they exceed MAX_P2SH_SIGOPS
CScript sixteenSigops; sixteenSigops << OP_16 << OP_CHECKMULTISIG;
keystore.AddCScript(sixteenSigops);
txFrom.vout[5].scriptPubKey = GetScriptForDestination(CScriptID(fifteenSigops));
txFrom.vout[5].scriptPubKey = GetScriptForDestination(CScriptID(sixteenSigops));
txFrom.vout[5].nValue = 5000;
CScript twentySigops; twentySigops << OP_CHECKMULTISIG;
keystore.AddCScript(twentySigops);