From dc84620d50634ac2c7b43d76d0d03cb940f1eb37 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Fri, 23 Aug 2024 11:29:30 -0600 Subject: [PATCH] fix: clearly elide the missing bytes --- src/primitives/transaction.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {}