diff options
author | jeffro256 <jeffro256@tutanota.com> | 2023-06-12 01:30:38 -0500 |
---|---|---|
committer | jeffro256 <jeffro256@tutanota.com> | 2023-06-12 16:47:28 -0500 |
commit | 369a5a8f9aeeedd608729a52c7cee1efe99ba620 (patch) | |
tree | 8d053b85e8f7a12a9a656fada3a7607f5120028a /src/wallet/wallet2.h | |
parent | Merge pull request #8842 (diff) | |
download | monero-369a5a8f9aeeedd608729a52c7cee1efe99ba620.tar.xz |
wallet: respect frozen key images in multisig wallets
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.
Diffstat (limited to 'src/wallet/wallet2.h')
-rw-r--r-- | src/wallet/wallet2.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/wallet/wallet2.h b/src/wallet/wallet2.h index 5e922494b..9092dd797 100644 --- a/src/wallet/wallet2.h +++ b/src/wallet/wallet2.h @@ -1592,6 +1592,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); |