From c00ab6424d5aa674a1028476ff17e383016e9b2a Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 21 Jul 2018 04:01:53 -1100 Subject: [PATCH] -print --- src/rpcrawtransaction.cpp | 4 ++-- src/script/standard.cpp | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/rpcrawtransaction.cpp b/src/rpcrawtransaction.cpp index c0a6aa0ae..125be1d73 100644 --- a/src/rpcrawtransaction.cpp +++ b/src/rpcrawtransaction.cpp @@ -45,8 +45,8 @@ void ScriptPubKeyToJSON(const CScript& scriptPubKey, UniValue& out, bool fInclud if (fIncludeHex) out.push_back(Pair("hex", HexStr(scriptPubKey.begin(), scriptPubKey.end()))); - if (!ExtractDestinations(scriptPubKey, type, addresses, nRequired)) { - fprintf(stderr,"extractdestinations error\n"); + if (!ExtractDestinations(scriptPubKey, type, addresses, nRequired)) + { out.push_back(Pair("type", GetTxnOutputType(type))); return; } diff --git a/src/script/standard.cpp b/src/script/standard.cpp index db1a250dc..359469ed8 100644 --- a/src/script/standard.cpp +++ b/src/script/standard.cpp @@ -264,7 +264,6 @@ bool ExtractDestination(const CScript& scriptPubKey, CTxDestination& addressRet) else if (IsCryptoConditionsEnabled() != 0 && whichType == TX_CRYPTOCONDITION) { - fprintf(stderr,"found CC type\n"); addressRet = CScriptID(uint160(vSolutions[0])); return true; } @@ -306,7 +305,6 @@ bool ExtractDestinations(const CScript& scriptPubKey, txnouttype& typeRet, vecto CTxDestination address; if (!ExtractDestination(scriptPubKey, address)) { - fprintf(stderr,"error extractdestination from extractdestinations\n"); return false; } addressRet.push_back(address);