From 2b9517889774c9420e6cb336ec62c5842420cee4 Mon Sep 17 00:00:00 2001 From: Crypto City Date: Fri, 5 Nov 2021 17:47:37 +0000 Subject: wallet2: speedup large tx construction: batch ringdb updates 5.2 seconds -> 4.1 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 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 &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); bool blackball(const std::pair &output); bool blackball(const std::vector> &outputs); -- cgit v1.2.3