aboutsummaryrefslogtreecommitdiff
path: root/src/core.cpp
diff options
context:
space:
mode:
authorPeter Todd <[email protected]>2013-10-24 04:52:16 -0400
committerPeter Todd <[email protected]>2013-10-24 04:52:16 -0400
commit005609539b2184a474ffe9ebfe883984c900a3fb (patch)
tree09ca40ac7b728882753c056f31d821cd3e825a9b /src/core.cpp
parentRelay OP_RETURN TxOut as standard transaction type (diff)
downloaddiscoin-005609539b2184a474ffe9ebfe883984c900a3fb.tar.xz
discoin-005609539b2184a474ffe9ebfe883984c900a3fb.zip
Show short scriptPubKeys correctly
Previously bitcoin-qt's -debug transaction info was showing CTxOut([error]) It is valid for a scriptPubKey to be any size, for example simply OP_RETURN is valid and can be used to destroy a TXOUT to mining fees.
Diffstat (limited to 'src/core.cpp')
-rw-r--r--src/core.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/core.cpp b/src/core.cpp
index 99b5c6641..5512f81b6 100644
--- a/src/core.cpp
+++ b/src/core.cpp
@@ -63,8 +63,6 @@ uint256 CTxOut::GetHash() const
std::string CTxOut::ToString() const
{
- if (scriptPubKey.size() < 6)
- return "CTxOut(error)";
return strprintf("CTxOut(nValue=%"PRI64d".%08"PRI64d", scriptPubKey=%s)", nValue / COIN, nValue % COIN, scriptPubKey.ToString().substr(0,30).c_str());
}