Skip to content

Conversation

instagibbs
Copy link
Member

I took the text from bitcoin.org's description. @harding Is this originally from there?

edit: Changed the wording

@instagibbs instagibbs changed the title Added help text for chainwork value [RPC] Added help text for chainwork value Dec 18, 2015
@harding
Copy link
Contributor

harding commented Dec 18, 2015

@instagibbs yes; that description was written by me based upon my reading of the code.

@fanquake
Copy link
Member

ACK

@instagibbs instagibbs changed the title [RPC] Added help text for chainwork value [RPC] getblock: Added help text for chainwork value Jan 4, 2016
@@ -384,6 +384,7 @@ UniValue getblock(const UniValue& params, bool fHelp)
" \"nonce\" : n, (numeric) The nonce\n"
" \"bits\" : \"1d00ffff\", (string) The bits\n"
" \"difficulty\" : x.xxx, (numeric) The difficulty\n"
" \"chainwork\" : \"xxxx\", (string) The estimated number of block header hashes checked from the genesis block to this block, in hexadecimal\n"
Copy link
Member

Choose a reason for hiding this comment

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

I don't understand this sentence. I like (string) Expected number of hashes required to produce the current chain (in hex) better.

Copy link
Member Author

Choose a reason for hiding this comment

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

What don't you understand about it specifically? Would:

(string) Expected number of hashes required to produce the chain up to this block (in hex)

be better? As-is it's ambiguous to what "current chain" means. In getblockchaininfo it clearly means the valid chain with most work.

Copy link
Member

Choose a reason for hiding this comment

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

block header hashes

is not immediately clear what this means. Usually blocks with hashes that don't hit the diff are not considered valid, so they are not counted. Then "estimated" gives the hint that they are counted as well.

Copy link
Member

Choose a reason for hiding this comment

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

@instagibbs I like your suggestion as well.

@instagibbs
Copy link
Member Author

Updated wording re: @MarcoFalke comments.

@maflcko
Copy link
Member

maflcko commented Jan 11, 2016

utACK 94bdd71

@laanwj laanwj merged commit 94bdd71 into bitcoin:master Jan 18, 2016
laanwj added a commit that referenced this pull request Jan 18, 2016
94bdd71 Added help text for chainwork value (Gregory Sanders)
laanwj pushed a commit that referenced this pull request Jan 18, 2016
@laanwj
Copy link
Member

laanwj commented Jan 18, 2016

utACK

@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