628@@ -629,7 +629,7 @@ BOOST_AUTO_TEST_CASE(test_witness)
629 CreateCreditAndSpend(keystore2, scriptMulti, output2, input2, false);
630 CheckWithFlag(output2, input2, 0, false);
631 BOOST_CHECK(*output1 == *output2);
632- UpdateTransaction(input1, 0, CombineSignatures(output1->vout[0].scriptPubKey, MutableTransactionSignatureChecker(&input1, 0, output1->vout[0].nValue), DataFromTransaction(input1, 0), DataFromTransaction(input2, 0)));
633+ UpdateInput(input1.vin.at(0), CombineSignatures(output1->vout[0].scriptPubKey, MutableTransactionSignatureChecker(&input1, 0, output1->vout[0].nValue), DataFromTransaction(input1, 0), DataFromTransaction(input2, 0)));
Replace all .at()
usages with operator[]
.
Thanks, I used at
because UpdateTransaction
asserted on the length, so it seemed more consistent, but I see now that CreateCreditAndSpend
consistently creates this input.