Skip to content

Commit

Permalink
fix: clearly elide the missing bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
coolaj86 committed Aug 23, 2024
1 parent 5d286a5 commit dc84620
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/primitives/transaction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {}
Expand Down

0 comments on commit dc84620

Please sign in to comment.