Reformat version in UpdateTip and other messages

Also remove the hardly-readable nBits from UpdateTip's log message.
This commit is contained in:
Pieter Wuille
2016-03-29 16:46:20 +02:00
parent 0b98dd7939
commit eff736e55e
2 changed files with 5 additions and 5 deletions

View File

@@ -18,7 +18,7 @@ uint256 CBlockHeader::GetHash() const
std::string CBlock::ToString() const
{
std::stringstream s;
s << strprintf("CBlock(hash=%s, ver=%d, hashPrevBlock=%s, hashMerkleRoot=%s, nTime=%u, nBits=%08x, nNonce=%u, vtx=%u)\n",
s << strprintf("CBlock(hash=%s, ver=0x%08x, hashPrevBlock=%s, hashMerkleRoot=%s, nTime=%u, nBits=%08x, nNonce=%u, vtx=%u)\n",
GetHash().ToString(),
nVersion,
hashPrevBlock.ToString(),