diff --git a/src/test/script_p2sh_tests.cpp b/src/test/script_p2sh_tests.cpp --- a/src/test/script_p2sh_tests.cpp +++ b/src/test/script_p2sh_tests.cpp @@ -337,8 +337,8 @@ txTo.vout[0].scriptPubKey = GetScriptForDestination(PKHash(key[1].GetPubKey())); - txTo.vin.resize(5); - for (int i = 0; i < 5; i++) { + txTo.vin.resize(3); + for (int i = 0; i < 3; i++) { txTo.vin[i].prevout = COutPoint(txFrom.GetId(), i); }