From fdf15b340f91c1520c6b1fcec017725ee8b28914 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Thu, 13 Nov 2014 12:41:41 -0800 Subject: [PATCH] WalletGetBalance account is * by default. --- src/bitcoindjs.cc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/bitcoindjs.cc b/src/bitcoindjs.cc index 19f417aa..b5f27d2d 100644 --- a/src/bitcoindjs.cc +++ b/src/bitcoindjs.cc @@ -3926,7 +3926,7 @@ NAN_METHOD(WalletGetBalance) { Local options = Local::Cast(args[0]); - std::string strAccount = std::string(EMPTY); + std::string strAccount = "*"; int nMinDepth = 1; if (options->Get(NanNew("account"))->IsString()) { @@ -3948,10 +3948,6 @@ NAN_METHOD(WalletGetBalance) { nMinDepth = options->Get(NanNew("confirmations"))->IntegerValue(); } - if (strAccount == EMPTY) { - return NanThrowError("No account name provided."); - } - isminefilter filter = ISMINE_SPENDABLE; if (strAccount == "*") {