This commit is contained in:
jl777
2018-07-21 04:01:53 -11:00
parent e512c055ac
commit c00ab6424d
2 changed files with 2 additions and 4 deletions

View File

@@ -45,8 +45,8 @@ void ScriptPubKeyToJSON(const CScript& scriptPubKey, UniValue& out, bool fInclud
if (fIncludeHex) if (fIncludeHex)
out.push_back(Pair("hex", HexStr(scriptPubKey.begin(), scriptPubKey.end()))); out.push_back(Pair("hex", HexStr(scriptPubKey.begin(), scriptPubKey.end())));
if (!ExtractDestinations(scriptPubKey, type, addresses, nRequired)) { if (!ExtractDestinations(scriptPubKey, type, addresses, nRequired))
fprintf(stderr,"extractdestinations error\n"); {
out.push_back(Pair("type", GetTxnOutputType(type))); out.push_back(Pair("type", GetTxnOutputType(type)));
return; return;
} }

View File

@@ -264,7 +264,6 @@ bool ExtractDestination(const CScript& scriptPubKey, CTxDestination& addressRet)
else if (IsCryptoConditionsEnabled() != 0 && whichType == TX_CRYPTOCONDITION) else if (IsCryptoConditionsEnabled() != 0 && whichType == TX_CRYPTOCONDITION)
{ {
fprintf(stderr,"found CC type\n");
addressRet = CScriptID(uint160(vSolutions[0])); addressRet = CScriptID(uint160(vSolutions[0]));
return true; return true;
} }
@@ -306,7 +305,6 @@ bool ExtractDestinations(const CScript& scriptPubKey, txnouttype& typeRet, vecto
CTxDestination address; CTxDestination address;
if (!ExtractDestination(scriptPubKey, address)) if (!ExtractDestination(scriptPubKey, address))
{ {
fprintf(stderr,"error extractdestination from extractdestinations\n");
return false; return false;
} }
addressRet.push_back(address); addressRet.push_back(address);