diff options
author | Crypto City <cryptocity@example.com> | 2021-11-05 17:47:37 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2022-05-13 17:43:20 +0000 |
commit | 2b9517889774c9420e6cb336ec62c5842420cee4 (patch) | |
tree | 88750d5ba6ee5fb07fc5bd3f3cd7b15ee265b492 /src/wallet/ringdb.h | |
parent | wallet2: speedup large tx construction: cache public key validity (diff) | |
download | monero-2b9517889774c9420e6cb336ec62c5842420cee4.tar.xz |
wallet2: speedup large tx construction: batch ringdb updates
5.2 seconds -> 4.1 seconds on a test case
Diffstat (limited to 'src/wallet/ringdb.h')
-rw-r--r-- | src/wallet/ringdb.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/wallet/ringdb.h b/src/wallet/ringdb.h index e9941bf94..7b02f4605 100644 --- a/src/wallet/ringdb.h +++ b/src/wallet/ringdb.h @@ -50,6 +50,7 @@ namespace tools bool remove_rings(const crypto::chacha_key &chacha_key, const cryptonote::transaction_prefix &tx); bool get_ring(const crypto::chacha_key &chacha_key, const crypto::key_image &key_image, std::vector<uint64_t> &outs); bool set_ring(const crypto::chacha_key &chacha_key, const crypto::key_image &key_image, const std::vector<uint64_t> &outs, bool relative); + bool set_rings(const crypto::chacha_key &chacha_key, const std::vector<std::pair<crypto::key_image, std::vector<uint64_t>>> &rings, bool relative); bool blackball(const std::pair<uint64_t, uint64_t> &output); bool blackball(const std::vector<std::pair<uint64_t, uint64_t>> &outputs); |