diff --git a/src/primitives/transaction.cpp b/src/primitives/transaction.cpp index feb97c08948d2..e3d6d123b12f7 100644 --- a/src/primitives/transaction.cpp +++ b/src/primitives/transaction.cpp @@ -58,7 +58,7 @@ CTxOut::CTxOut(const CAmount& nValueIn, CScript scriptPubKeyIn) std::string CTxOut::ToString() const { - return strprintf("CTxOut(nValue=%d.%08d, scriptPubKey=%s)", nValue / COIN, nValue % COIN, HexStr(scriptPubKey).substr(0, 30)); + return strprintf("CTxOut(nValue=%d.%08d, scriptPubKey=%s...)", nValue / COIN, nValue % COIN, HexStr(scriptPubKey).substr(0, 27)); } CMutableTransaction::CMutableTransaction() : nVersion(CTransaction::CURRENT_VERSION), nType(TRANSACTION_NORMAL), nLockTime(0) {}