1
0
Fork 0
forked from lthn/blockchain

gui: is_auditable and is_watch_only are now available in wallet_info

This commit is contained in:
sowle 2020-05-28 12:36:51 +03:00
parent 5bb8b369ff
commit 859291f45e
No known key found for this signature in database
GPG key ID: C07A24B2D89D49FC
2 changed files with 6 additions and 0 deletions

View file

@ -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()
};

View file

@ -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;
}
}