Changeset View
Changeset View
Standalone View
Standalone View
src/test/script_tests.cpp
Show First 20 Lines • Show All 502 Lines • ▼ Show 20 Lines | TestBuilder &Test() { | ||||
return *this; | return *this; | ||||
} | } | ||||
UniValue GetJSON() { | UniValue GetJSON() { | ||||
DoPush(); | DoPush(); | ||||
UniValue array(UniValue::VARR); | UniValue array(UniValue::VARR); | ||||
if (nValue != Amount::zero()) { | if (nValue != Amount::zero()) { | ||||
UniValue amount(UniValue::VARR); | UniValue amount(UniValue::VARR); | ||||
amount.push_back(ValueFromAmount(nValue)); | amount.push_back(nValue); | ||||
array.push_back(amount); | array.push_back(amount); | ||||
} | } | ||||
array.push_back(FormatScript(spendTx.vin[0].scriptSig)); | array.push_back(FormatScript(spendTx.vin[0].scriptSig)); | ||||
array.push_back(FormatScript(creditTx->vout[0].scriptPubKey)); | array.push_back(FormatScript(creditTx->vout[0].scriptPubKey)); | ||||
array.push_back(FormatScriptFlags(flags)); | array.push_back(FormatScriptFlags(flags)); | ||||
array.push_back(FormatScriptError(scriptError)); | array.push_back(FormatScriptError(scriptError)); | ||||
array.push_back(comment); | array.push_back(comment); | ||||
▲ Show 20 Lines • Show All 2,838 Lines • Show Last 20 Lines |