|
|
|
@ -113,7 +113,7 @@ BOOST_AUTO_TEST_CASE(sign)
@@ -113,7 +113,7 @@ BOOST_AUTO_TEST_CASE(sign)
|
|
|
|
|
{ |
|
|
|
|
CScript sigSave = txTo[i].vin[0].scriptSig; |
|
|
|
|
txTo[i].vin[0].scriptSig = txTo[j].vin[0].scriptSig; |
|
|
|
|
bool sigOK = VerifySignature(CCoins(txFrom, 0), txTo[i], 0, SCRIPT_VERIFY_P2SH | SCRIPT_VERIFY_STRICTENC, 0); |
|
|
|
|
bool sigOK = CScriptCheck(CCoins(txFrom, 0), txTo[i], 0, SCRIPT_VERIFY_P2SH | SCRIPT_VERIFY_STRICTENC, 0)(); |
|
|
|
|
if (i == j) |
|
|
|
|
BOOST_CHECK_MESSAGE(sigOK, strprintf("VerifySignature %d %d", i, j)); |
|
|
|
|
else |
|
|
|
|