Print hash in CMutableTransaction::ToString

Keep in line with CTransaction::ToString. Truncates the hash at 10.
This commit is contained in:
Amir 2015-11-08 18:52:22 -06:00 committed by Holger Schinzel
parent 338f106fe3
commit 2491e2af3e

View File

@ -81,7 +81,8 @@ uint256 CMutableTransaction::GetHash() const
std::string CMutableTransaction::ToString() const std::string CMutableTransaction::ToString() const
{ {
std::string str; std::string str;
str += strprintf("CMutableTransaction(ver=%d, vin.size=%u, vout.size=%u, nLockTime=%u)\n", str += strprintf("CMutableTransaction(hash=%s, ver=%d, vin.size=%u, vout.size=%u, nLockTime=%u)\n",
GetHash().ToString().substr(0,10),
nVersion, nVersion,
vin.size(), vin.size(),
vout.size(), vout.size(),