Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Punctuation/grammer fixes in rpcwallet.cpp #10789
Conversation
MeshCollider
commented
Jul 11, 2017
|
NACK, disagree with the addition of full stops to every line and most of the changes in capitalization. Only a couple of the changes are valid spelling fixes, prefer if they were isolated from the rest |
laanwj
added the
Refactoring
label
Jul 11, 2017
jonasschnelli
added Docs and Output and removed Refactoring
labels
Jul 11, 2017
|
Isolated spelling fixes and reverted all but one capitalization. Will revert that too if needed, thanks. |
| @@ -719,7 +719,7 @@ UniValue getbalance(const JSONRPCRequest& request) | ||
| "\nExamples:\n" | ||
| "\nThe total amount in the wallet\n" | ||
| + HelpExampleCli("getbalance", "") + | ||
| - "\nThe total amount in the wallet at least 5 blocks confirmed\n" | ||
| + "\nThe total amount in the wallet at least 6 blocks confirmed\n" |
jonasschnelli
Jul 11, 2017
Member
Ideally we include wallet.h's DEFAULT_TX_CONFIRM_TARGET here somehow.
|
I'll tidy up the places where the const char needs to be an unsigned int. |
|
Open to suggestions on a better approach for string-ifying |
MeshCollider
referenced
this pull request
Jul 13, 2017
Merged
getbalance example covers at least 6 confirms #10807
| @@ -587,10 +588,10 @@ UniValue getreceivedbyaddress(const JSONRPCRequest& request) | ||
| + HelpExampleCli("getreceivedbyaddress", "\"1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX\"") + | ||
| "\nThe amount including unconfirmed transactions, zero confirmations\n" | ||
| + HelpExampleCli("getreceivedbyaddress", "\"1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX\" 0") + | ||
| - "\nThe amount with at least 6 confirmation, very safe\n" | ||
| - + HelpExampleCli("getreceivedbyaddress", "\"1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX\" 6") + | ||
| + "\nThe amount with at least " + std::to_string(DEFAULT_TX_CONFIRM_TARGET) + " confirmation, very safe\n" |
|
NACK. I don't like tying the DEFAULT_TX_CONFIRM_TARGET to the concept of how many confirmations we might want to wait before considering a transaction to have low chance of being re-orged out. These are unrelated concepts that just both happen to use the number 6 right now. |
|
What about adding a different constant? |
|
Updated to address @morcos feedback. |
FilmCoder
commented
Jul 19, 2017
•
|
Very grammar, much pull request, merge now wow. |
|
utACK e439beb |
|
utACK a5ecaf1, we should take this for 15. |
laanwj
merged commit a5ecaf1
into
bitcoin:master
Jul 25, 2017
1 check passed
laanwj
added a commit
that referenced
this pull request
Jul 25, 2017
|
|
laanwj |
1124328
|
stevendlander commentedJul 11, 2017
Standardizing punctuation on CLI output and also including a few fixes for grammer. This PR is for text only changes and includes no code edits.