Changeset View
Changeset View
Standalone View
Standalone View
src/test/transaction_tests.cpp
Show First 20 Lines • Show All 480 Lines • ▼ Show 20 Lines | for (size_t i = 0; i < mtx.vin.size(); i++) { | ||||
out.scriptPubKey = scriptPubKey; | out.scriptPubKey = scriptPubKey; | ||||
coins.emplace_back(std::move(out), 1, false); | coins.emplace_back(std::move(out), 1, false); | ||||
} | } | ||||
for (size_t i = 0; i < mtx.vin.size(); i++) { | for (size_t i = 0; i < mtx.vin.size(); i++) { | ||||
std::vector<CScriptCheck> vChecks; | std::vector<CScriptCheck> vChecks; | ||||
CTxOut &out = coins[tx.vin[i].prevout.GetN()].GetTxOut(); | CTxOut &out = coins[tx.vin[i].prevout.GetN()].GetTxOut(); | ||||
CScriptCheck check(out.scriptPubKey, out.nValue, tx, i, | CScriptCheck check(out.scriptPubKey, out.nValue, tx, i, | ||||
MANDATORY_SCRIPT_VERIFY_FLAGS, false, txdata); | STANDARD_SCRIPT_VERIFY_FLAGS, false, txdata); | ||||
vChecks.push_back(CScriptCheck()); | vChecks.push_back(CScriptCheck()); | ||||
check.swap(vChecks.back()); | check.swap(vChecks.back()); | ||||
control.Add(vChecks); | control.Add(vChecks); | ||||
} | } | ||||
bool controlCheck = control.Wait(); | bool controlCheck = control.Wait(); | ||||
BOOST_CHECK(controlCheck); | BOOST_CHECK(controlCheck); | ||||
▲ Show 20 Lines • Show All 308 Lines • Show Last 20 Lines |