Changeset View
Changeset View
Standalone View
Standalone View
src/test/script_P2SH_tests.cpp
Show First 20 Lines • Show All 372 Lines • ▼ Show 20 Lines | BOOST_AUTO_TEST_CASE(AreInputsStandard) { | ||||
txFrom.vout[5].nValue = 5000; | txFrom.vout[5].nValue = 5000; | ||||
CScript twentySigops; | CScript twentySigops; | ||||
twentySigops << OP_CHECKMULTISIG; | twentySigops << OP_CHECKMULTISIG; | ||||
keystore.AddCScript(twentySigops); | keystore.AddCScript(twentySigops); | ||||
txFrom.vout[6].scriptPubKey = | txFrom.vout[6].scriptPubKey = | ||||
GetScriptForDestination(CScriptID(twentySigops)); | GetScriptForDestination(CScriptID(twentySigops)); | ||||
txFrom.vout[6].nValue = 6000; | txFrom.vout[6].nValue = 6000; | ||||
coins.ModifyCoins(txFrom.GetId())->FromTx(txFrom, 0); | AddCoins(coins, txFrom, 0); | ||||
CMutableTransaction txTo; | CMutableTransaction txTo; | ||||
txTo.vout.resize(1); | txTo.vout.resize(1); | ||||
txTo.vout[0].scriptPubKey = | txTo.vout[0].scriptPubKey = | ||||
GetScriptForDestination(key[1].GetPubKey().GetID()); | GetScriptForDestination(key[1].GetPubKey().GetID()); | ||||
txTo.vin.resize(5); | txTo.vin.resize(5); | ||||
for (int i = 0; i < 5; i++) { | for (int i = 0; i < 5; i++) { | ||||
▲ Show 20 Lines • Show All 52 Lines • Show Last 20 Lines |