cryptocondition transaction is standard too

This commit is contained in:
Scott Sadler
2018-02-17 02:03:34 -03:00
parent a01d0f5672
commit a99ca25a5a
4 changed files with 33 additions and 0 deletions

View File

@@ -68,6 +68,13 @@ bool Solver(const CScript& scriptPubKey, txnouttype& typeRet, vector<vector<unsi
return true;
}
// Shortcut for pay-to-crypto-condition
if (scriptPubKey.IsPayToCryptoCondition()) {
typeRet = TX_CRYPTOCONDITION;
//vSolutionsRet.push_back("hello there");
return true;
}
// Scan templates
const CScript& script1 = scriptPubKey;
BOOST_FOREACH(const PAIRTYPE(txnouttype, CScript)& tplate, mTemplates)