diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-03-14 19:13:55 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-03-16 12:07:45 +0000 |
commit | eac3a11ed330faefa01685e98cf91e9ac1e31135 (patch) | |
tree | 0ab820cc329d2cf61fbe257df9ee62a254e85d9d /src/wallet/api/wallet2_api.h | |
parent | wallet2_api: add key reuse mitigations API (diff) | |
download | monero-eac3a11ed330faefa01685e98cf91e9ac1e31135.tar.xz |
wallet: more user friendly print_ring
It can now take a txid (to display rings for all its inputs),
and will print rings in a format that set_ring understands
Diffstat (limited to 'src/wallet/api/wallet2_api.h')
-rw-r--r-- | src/wallet/api/wallet2_api.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/wallet/api/wallet2_api.h b/src/wallet/api/wallet2_api.h index c77e495a2..d4e41c5aa 100644 --- a/src/wallet/api/wallet2_api.h +++ b/src/wallet/api/wallet2_api.h @@ -766,6 +766,9 @@ struct Wallet //! gets the ring used for a key image, if any virtual bool getRing(const std::string &key_image, std::vector<uint64_t> &ring) const = 0; + //! gets the rings used for a txid, if any + virtual bool getRings(const std::string &txid, std::vector<std::pair<std::string, std::vector<uint64_t>>> &rings) const = 0; + //! sets the ring used for a key image virtual bool setRing(const std::string &key_image, const std::vector<uint64_t> &ring, bool relative) = 0; |