... and also remove the hardly-readable nBits from UpdateTip's log message.
The decimal printing of block nVersion is not very readable in a versionbits world.
... and also remove the hardly-readable nBits from UpdateTip's log message.
The decimal printing of block nVersion is not very readable in a versionbits world.
Maybe %08x?
Updated to use version=0x%08x
Renamed the pull request, as I noticed it wasn't accurate: there was no nVersion in that message before
Nice. utACK b73879958edcbf964f87fcab1384c04deafa9c6a
2548 | @@ -2549,8 +2549,8 @@ void static UpdateTip(CBlockIndex *pindexNew) { 2549 | nTimeBestReceived = GetTime(); 2550 | mempool.AddTransactionsUpdated(1); 2551 | 2552 | - LogPrintf("%s: new best=%s height=%d bits=%d log2_work=%.8g tx=%lu date=%s progress=%f cache=%.1fMiB(%utx)\n", __func__, 2553 | - chainActive.Tip()->GetBlockHash().ToString(), chainActive.Height(), chainActive.Tip()->nBits, 2554 | + LogPrintf("%s: new best=%s height=%d version=0x%02x log2_work=%.8g tx=%lu date='%s' progress=%f cache=%.1fMiB(%utx)\n", __func__,
version=0x%08x here too?
Yes I think that'd be consistent
Thanks, fixed. That was a typo.
ACK https://github.com/bitcoin/bitcoin/pull/7763/commits/b73879958edcbf964f87fcab1384c04deafa9c6a
Before:
2016-03-30 13:05:47 UpdateTip: new best=00000000001880d1d2e6c6f340df9f2e317c3a04ae1e22b816113882936ed457 height=752296 bits=457179072 log2_work=67.118529 tx=9847921 date=2016-03-30 06:26:43 progress=0.999992 cache=0.0MiB(22tx)
after:
2016-03-30 13:06:37 UpdateTip: new best=00000000002b58079cfb57b2fc41e677238488c6808f630af8c694053dc8ced8 height=752620 version=0x04 log2_work=67.118541 tx=9851627 date='2016-03-30 10:17:49' progress=0.999996 cache=0.2MiB(1166tx)
concept ACK, utACK b738799
Also remove the hardly-readable nBits from UpdateTip's log message.
Fixed 0x%02x -> 0x%08x.