Merge pull request #292 from nodar-chkuaselidze/fix/rpc-getbalance-default

RPC: change default to getbalance
This commit is contained in:
Christopher Jeffrey (JJ) 2017-10-18 22:39:20 -07:00 committed by GitHub
commit 340f2176fc

View File

@ -391,7 +391,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 === '')