Changeset View
Changeset View
Standalone View
Standalone View
src/script/standard.cpp
Show First 20 Lines • Show All 76 Lines • ▼ Show 20 Lines | bool Solver(const CScript &scriptPubKey, txnouttype &typeRet, | ||||
if (scriptPubKey.size() >= 1 && scriptPubKey[0] == OP_RETURN && | if (scriptPubKey.size() >= 1 && scriptPubKey[0] == OP_RETURN && | ||||
scriptPubKey.IsPushOnly(scriptPubKey.begin() + 1)) { | scriptPubKey.IsPushOnly(scriptPubKey.begin() + 1)) { | ||||
typeRet = TX_NULL_DATA; | typeRet = TX_NULL_DATA; | ||||
return true; | return true; | ||||
} | } | ||||
// Scan templates | // Scan templates | ||||
const CScript &script1 = scriptPubKey; | const CScript &script1 = scriptPubKey; | ||||
for (const std::pair<txnouttype, CScript> &tplate : mTemplates) { | for (const std::pair<const txnouttype, CScript> &tplate : mTemplates) { | ||||
const CScript &script2 = tplate.second; | const CScript &script2 = tplate.second; | ||||
vSolutionsRet.clear(); | vSolutionsRet.clear(); | ||||
opcodetype opcode1, opcode2; | opcodetype opcode1, opcode2; | ||||
std::vector<uint8_t> vch1, vch2; | std::vector<uint8_t> vch1, vch2; | ||||
// Compare | // Compare | ||||
CScript::const_iterator pc1 = script1.begin(); | CScript::const_iterator pc1 = script1.begin(); | ||||
▲ Show 20 Lines • Show All 192 Lines • Show Last 20 Lines |