WalletGetBalance account is * by default.
This commit is contained in:
parent
ebf3c6c13d
commit
fdf15b340f
|
@ -3926,7 +3926,7 @@ NAN_METHOD(WalletGetBalance) {
|
||||||
|
|
||||||
Local<Object> options = Local<Object>::Cast(args[0]);
|
Local<Object> options = Local<Object>::Cast(args[0]);
|
||||||
|
|
||||||
std::string strAccount = std::string(EMPTY);
|
std::string strAccount = "*";
|
||||||
int nMinDepth = 1;
|
int nMinDepth = 1;
|
||||||
|
|
||||||
if (options->Get(NanNew<String>("account"))->IsString()) {
|
if (options->Get(NanNew<String>("account"))->IsString()) {
|
||||||
|
@ -3948,10 +3948,6 @@ NAN_METHOD(WalletGetBalance) {
|
||||||
nMinDepth = options->Get(NanNew<String>("confirmations"))->IntegerValue();
|
nMinDepth = options->Get(NanNew<String>("confirmations"))->IntegerValue();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (strAccount == EMPTY) {
|
|
||||||
return NanThrowError("No account name provided.");
|
|
||||||
}
|
|
||||||
|
|
||||||
isminefilter filter = ISMINE_SPENDABLE;
|
isminefilter filter = ISMINE_SPENDABLE;
|
||||||
|
|
||||||
if (strAccount == "*") {
|
if (strAccount == "*") {
|
||||||
|
|
Loading…
Reference in New Issue