forked from lthn/blockchain
gui: is_auditable and is_watch_only are now available in wallet_info
This commit is contained in:
parent
5bb8b369ff
commit
859291f45e
2 changed files with 6 additions and 0 deletions
|
|
@ -215,6 +215,8 @@ public:
|
|||
std::string address;
|
||||
std::string tracking_hey;
|
||||
std::string path;
|
||||
bool is_auditable;
|
||||
bool is_watch_only;
|
||||
|
||||
BEGIN_KV_SERIALIZE_MAP()
|
||||
KV_SERIALIZE(unlocked_balance)
|
||||
|
|
@ -223,6 +225,8 @@ public:
|
|||
KV_SERIALIZE(address)
|
||||
KV_SERIALIZE(tracking_hey)
|
||||
KV_SERIALIZE(path)
|
||||
KV_SERIALIZE(is_auditable);
|
||||
KV_SERIALIZE(is_watch_only);
|
||||
END_KV_SERIALIZE_MAP()
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -19,6 +19,8 @@ namespace tools
|
|||
uint64_t fake = 0;
|
||||
wi.balance = w.balance(wi.unlocked_balance, fake, fake, wi.mined_total);
|
||||
wi.path = epee::string_encoding::wstring_to_utf8(w.get_wallet_path());
|
||||
wi.is_auditable = w.is_auditable();
|
||||
wi.is_watch_only = w.is_watch_only();
|
||||
return true;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue