diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-10-01 14:06:54 +0100 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-12-17 16:12:18 +0000 |
commit | 265290388bd2134108d689818518f7d9c830292c (patch) | |
tree | f4009e97bb83c923349cc5326b954b176ce3cd71 /src/wallet/wallet2.cpp | |
parent | add multisig core test and factor multisig building blocks (diff) | |
download | monero-265290388bd2134108d689818518f7d9c830292c.tar.xz |
wallet: guard against partly initialized multisig wallet
Diffstat (limited to '')
-rw-r--r-- | src/wallet/wallet2.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index 2bba6f9e1..9c2587f25 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -3039,7 +3039,7 @@ bool wallet2::verify_extra_multisig_info(const std::string &data, std::unordered return true; } -bool wallet2::multisig(uint32_t *threshold, uint32_t *total) const +bool wallet2::multisig(bool *ready, uint32_t *threshold, uint32_t *total) const { if (!m_multisig) return false; @@ -3047,6 +3047,8 @@ bool wallet2::multisig(uint32_t *threshold, uint32_t *total) const *threshold = m_multisig_threshold; if (total) *total = m_multisig_signers.size(); + if (ready) + *ready = !(get_account().get_keys().m_account_address.m_spend_public_key == rct::rct2pk(rct::identity())); return true; } |