return IsLocked and IsCrypted.

This commit is contained in:
Christopher Jeffrey 2014-10-29 11:33:07 -07:00
parent 73bc0083b8
commit ed9508740a
1 changed files with 6 additions and 2 deletions

View File

@ -3748,10 +3748,14 @@ NAN_METHOD(WalletEncrypted) {
"Usage: bitcoindjs.walletEncrypted()");
}
// bool isLocked = pwalletMain->IsLocked();
bool isLocked = pwalletMain->IsLocked();
bool isEncrypted = pwalletMain->IsCrypted();
NanReturnValue(NanNew<Boolean>(isEncrypted));
Local<Object> result = NanNew<Object>();
result->Set(NanNew<String>("locked"), NanNew<Boolean>(isLocked));
result->Set(NanNew<String>("encrypted"), NanNew<Boolean>(isCrypted));
NanReturnValue(result);
}
/**