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 == "*") {