rpc: getbalance default minconf=1

This commit is contained in:
Node 2017-08-24 20:57:27 +04:00
parent c54ba4c5ab
commit 82595b95eb
No known key found for this signature in database
GPG Key ID: 8E1B4DC29040BD90

View File

@ -394,7 +394,7 @@ RPC.prototype.getBalance = async function getBalance(args, help) {
const wallet = this.wallet;
const valid = new Validator([args]);
let name = valid.str(0);
const minconf = valid.u32(1, 0);
const minconf = valid.u32(1, 1);
const watchOnly = valid.bool(2, false);
if (name === '')