diff --git a/src/bitcoindjs.cc b/src/bitcoindjs.cc index 421df936..af4be3ca 100644 --- a/src/bitcoindjs.cc +++ b/src/bitcoindjs.cc @@ -3748,10 +3748,14 @@ NAN_METHOD(WalletEncrypted) { "Usage: bitcoindjs.walletEncrypted()"); } - // bool isLocked = pwalletMain->IsLocked(); + bool isLocked = pwalletMain->IsLocked(); bool isEncrypted = pwalletMain->IsCrypted(); - NanReturnValue(NanNew(isEncrypted)); + Local result = NanNew(); + result->Set(NanNew("locked"), NanNew(isLocked)); + result->Set(NanNew("encrypted"), NanNew(isCrypted)); + + NanReturnValue(result); } /**