Claim name returned is strange #172

Closed
mirgee wants to merge 286 commits from issue-119 into master
Showing only changes of commit 3d0b033614 - Show all commits

View file

@ -87,9 +87,6 @@ string ScriptToAsmStr(const CScript& script, const bool fAttemptSighashDecode)
return str;
}
if (0 <= opcode && opcode <= OP_PUSHDATA4) {
if (vch.size() <= static_cast<vector<unsigned char>::size_type>(4)) {
str += strprintf("%d", CScriptNum(vch, false).getint());
} else {
// the IsUnspendable check makes sure not to try to decode OP_RETURN data that may match the format of a signature
if (fAttemptSighashDecode && !script.IsUnspendable()) {
string strSigHashDecode;
@ -108,7 +105,6 @@ string ScriptToAsmStr(const CScript& script, const bool fAttemptSighashDecode)
} else {
str += HexStr(vch);
}
}
} else {
str += GetOpName(opcode);
}