From dc24312bc3c8c9d865e4576631832c81d6dd212d Mon Sep 17 00:00:00 2001 From: jeffro256 Date: Mon, 12 Jun 2023 01:30:38 -0500 Subject: wallet: respect frozen key images in multisig wallets [RELEASE] Before this change, if a multisig peer asked you to sign a transaction with a frozen enote, the wallet will do it without any error or warning. This change makes it so that wallets will refuse to sign multisig transactions with frozen enotes. Disclaimer: This PR was generously funded by @LocalMonero. --- src/wallet/wallet2.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/wallet/wallet2.h') diff --git a/src/wallet/wallet2.h b/src/wallet/wallet2.h index 50975c756..d5f682e59 100644 --- a/src/wallet/wallet2.h +++ b/src/wallet/wallet2.h @@ -1645,6 +1645,7 @@ private: void thaw(const crypto::key_image &ki); bool frozen(const crypto::key_image &ki) const; bool frozen(const transfer_details &td) const; + bool frozen(const multisig_tx_set& txs) const; // does partially signed txset contain frozen enotes? bool save_to_file(const std::string& path_to_file, const std::string& binary, bool is_printable = false) const; static bool load_from_file(const std::string& path_to_file, std::string& target_str, size_t max_size = 1000000000); -- cgit v1.2.3