Fix out type

This commit is contained in:
jl777
2018-07-21 03:56:57 -11:00
parent fa62690da2
commit e512c055ac
2 changed files with 7 additions and 1 deletions

View File

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