aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet2.h
diff options
context:
space:
mode:
authorCrypto City <cryptocity@example.com>2021-11-05 17:47:37 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2022-05-13 17:43:20 +0000
commit2b9517889774c9420e6cb336ec62c5842420cee4 (patch)
tree88750d5ba6ee5fb07fc5bd3f3cd7b15ee265b492 /src/wallet/wallet2.h
parentwallet2: speedup large tx construction: cache public key validity (diff)
downloadmonero-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/wallet2.h')
-rw-r--r--src/wallet/wallet2.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/wallet/wallet2.h b/src/wallet/wallet2.h
index 41ef5b3b8..082b1d4e9 100644
--- a/src/wallet/wallet2.h
+++ b/src/wallet/wallet2.h
@@ -1559,6 +1559,7 @@ private:
bool get_ring(const crypto::key_image &key_image, std::vector<uint64_t> &outs);
bool get_rings(const crypto::hash &txid, std::vector<std::pair<crypto::key_image, std::vector<uint64_t>>> &outs);
bool set_ring(const crypto::key_image &key_image, const std::vector<uint64_t> &outs, bool relative);
+ bool set_rings(const std::vector<std::pair<crypto::key_image, std::vector<uint64_t>>> &rings, bool relative);
bool unset_ring(const std::vector<crypto::key_image> &key_images);
bool unset_ring(const crypto::hash &txid);
bool find_and_save_rings(bool force = true);