mirror of
https://github.com/monero-project/monero.git
synced 2025-08-18 21:17:57 -04:00
wallet: ask-password can now ask without encrypting the secret spend key
This commit is contained in:
parent
3584a852a3
commit
44259e560e
4 changed files with 83 additions and 56 deletions
|
@ -29,14 +29,14 @@
|
|||
#pragma once
|
||||
|
||||
#define GET_FIELD_FROM_JSON_RETURN_ON_ERROR(json, name, type, jtype, mandatory, def) \
|
||||
type field_##name = def; \
|
||||
type field_##name = static_cast<type>(def); \
|
||||
bool field_##name##_found = false; \
|
||||
(void)field_##name##_found; \
|
||||
do if (json.HasMember(#name)) \
|
||||
{ \
|
||||
if (json[#name].Is##jtype()) \
|
||||
{ \
|
||||
field_##name = json[#name].Get##jtype(); \
|
||||
field_##name = static_cast<type>(json[#name].Get##jtype()); \
|
||||
field_##name##_found = true; \
|
||||
} \
|
||||
else \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue