From 38cdf01c643df677a0c65b8932d62c3f6eb4e62b Mon Sep 17 00:00:00 2001 From: Crypto City Date: Fri, 5 Nov 2021 19:18:10 +0000 Subject: wallet2: speedup large tx construction: batch ringdb lookups 3.3 seconds -> 2.8 seconds on a test case --- src/wallet/ringdb.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/wallet/ringdb.h') diff --git a/src/wallet/ringdb.h b/src/wallet/ringdb.h index 7b02f4605..bdecdba37 100644 --- a/src/wallet/ringdb.h +++ b/src/wallet/ringdb.h @@ -49,6 +49,7 @@ namespace tools bool remove_rings(const crypto::chacha_key &chacha_key, const std::vector &key_images); 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 &outs); + bool get_rings(const crypto::chacha_key &chacha_key, const std::vector &key_images, std::vector> &all_outs); bool set_ring(const crypto::chacha_key &chacha_key, const crypto::key_image &key_image, const std::vector &outs, bool relative); bool set_rings(const crypto::chacha_key &chacha_key, const std::vector>> &rings, bool relative); -- cgit v1.2.3