mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-06-03 03:31:57 +02:00
Merge #18502: doc: Update docs for getbalance (default minconf should be 0)
c0af173da20cc4560523205bc268677a808a43df doc: default minconf for getbalance should be 0 (U-Zyn Chua)
Pull request description:
- Default `minconf` for `getbalance` is `0` but example in doc was showing as `1`.
- `at least 6 blocks confirmed` now updated to be `at least 6 confirmations` to be more consistent with the terminology used elsewhere in the codebase and documentations.
ACKs for top commit:
theStack:
re-ACK c0af173da2
Tree-SHA512: 8f67af78a222a4bd2957658b37fae2224783274f355af84f39a5ce0da90b21f03dc798a6408d44a724c353ff5ed7dfec943fb28726ec423028b64fc579f937ad
This commit is contained in:
commit
d5783985eb
@ -732,9 +732,9 @@ static UniValue getbalance(const JSONRPCRequest& request)
|
||||
RPCResult::Type::STR_AMOUNT, "amount", "The total amount in " + CURRENCY_UNIT + " received for this wallet."
|
||||
},
|
||||
RPCExamples{
|
||||
"\nThe total amount in the wallet with 1 or more confirmations\n"
|
||||
"\nThe total amount in the wallet with 0 or more confirmations\n"
|
||||
+ HelpExampleCli("getbalance", "") +
|
||||
"\nThe total amount in the wallet at least 6 blocks confirmed\n"
|
||||
"\nThe total amount in the wallet with at least 6 confirmations\n"
|
||||
+ HelpExampleCli("getbalance", "\"*\" 6") +
|
||||
"\nAs a JSON-RPC call\n"
|
||||
+ HelpExampleRpc("getbalance", "\"*\", 6")
|
||||
|
Loading…
x
Reference in New Issue
Block a user