Skip to content

Conversation

@sipa
Copy link
Member

@sipa sipa commented Mar 29, 2016

... 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.

@laanwj
Copy link
Member

laanwj commented Mar 29, 2016

Maybe %08x?

@sipa sipa force-pushed the hexver branch 2 times, most recently from 2b6357c to b738799 Compare March 29, 2016 15:30
@sipa
Copy link
Member Author

sipa commented Mar 29, 2016

Updated to use version=0x%08x

@laanwj
Copy link
Member

laanwj commented Mar 29, 2016

utACK b738799

@sipa sipa changed the title Reformat version in UpdateTip and other messages Put hex-encoded version in UpdateTip Mar 29, 2016
@sipa
Copy link
Member Author

sipa commented Mar 29, 2016

Renamed the pull request, as I noticed it wasn't accurate: there was no nVersion in that message before

@petertodd
Copy link
Contributor

utACK b738799

@jonasschnelli
Copy link
Contributor

Nice.
utACK b73879958edcbf964f87fcab1384c04deafa9c6a

src/main.cpp Outdated
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

version=0x%08x here too?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes I think that'd be consistent

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, fixed. That was a typo.

@paveljanik
Copy link
Contributor

ACK b738799

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)

@dcousens
Copy link
Contributor

concept ACK, utACK b738799

Also remove the hardly-readable nBits from UpdateTip's log message.
@sipa
Copy link
Member Author

sipa commented Mar 31, 2016

Fixed 0x%02x -> 0x%08x.

@paveljanik
Copy link
Contributor

reACK eff736e

@laanwj laanwj merged commit eff736e into bitcoin:master Mar 31, 2016
laanwj added a commit that referenced this pull request Mar 31, 2016
eff736e Reformat version in UpdateTip and other messages (Pieter Wuille)
codablock pushed a commit to codablock/dash that referenced this pull request Dec 19, 2017
eff736e Reformat version in UpdateTip and other messages (Pieter Wuille)
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants