rpc: getbalance default minconf=1
This commit is contained in:
parent
c54ba4c5ab
commit
82595b95eb
@ -394,7 +394,7 @@ RPC.prototype.getBalance = async function getBalance(args, help) {
|
|||||||
const wallet = this.wallet;
|
const wallet = this.wallet;
|
||||||
const valid = new Validator([args]);
|
const valid = new Validator([args]);
|
||||||
let name = valid.str(0);
|
let name = valid.str(0);
|
||||||
const minconf = valid.u32(1, 0);
|
const minconf = valid.u32(1, 1);
|
||||||
const watchOnly = valid.bool(2, false);
|
const watchOnly = valid.bool(2, false);
|
||||||
|
|
||||||
if (name === '')
|
if (name === '')
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user