WalletGetBalance account is * by default.

This commit is contained in:
Christopher Jeffrey 2014-11-13 12:41:41 -08:00
parent ebf3c6c13d
commit fdf15b340f
1 changed files with 1 additions and 5 deletions

View File

@ -3926,7 +3926,7 @@ NAN_METHOD(WalletGetBalance) {
Local<Object> options = Local<Object>::Cast(args[0]);
std::string strAccount = std::string(EMPTY);
std::string strAccount = "*";
int nMinDepth = 1;
if (options->Get(NanNew<String>("account"))->IsString()) {
@ -3948,10 +3948,6 @@ NAN_METHOD(WalletGetBalance) {
nMinDepth = options->Get(NanNew<String>("confirmations"))->IntegerValue();
}
if (strAccount == EMPTY) {
return NanThrowError("No account name provided.");
}
isminefilter filter = ISMINE_SPENDABLE;
if (strAccount == "*") {