From 82595b95eb2fd1f3ad98c796e91c158680cf8c5a Mon Sep 17 00:00:00 2001 From: Node Date: Thu, 24 Aug 2017 20:57:27 +0400 Subject: [PATCH] rpc: getbalance default minconf=1 --- lib/wallet/rpc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/wallet/rpc.js b/lib/wallet/rpc.js index 45cfd8b4..f9c64798 100644 --- a/lib/wallet/rpc.js +++ b/lib/wallet/rpc.js @@ -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 === '')