diff options
author | koe <ukoe@protonmail.com> | 2022-04-29 14:04:59 -0500 |
---|---|---|
committer | koe <ukoe@protonmail.com> | 2022-04-29 14:04:59 -0500 |
commit | 0d6ecb113651ac99abd25a04fe4ddb9ac0a73c3e (patch) | |
tree | 3b7d1c453e2d38060f1c26b020f22e74309e2ef3 /src/simplewallet/simplewallet.cpp | |
parent | Merge pull request #8161 (diff) | |
download | monero-0d6ecb113651ac99abd25a04fe4ddb9ac0a73c3e.tar.xz |
multisig: add post-kex verification round to check that all participants have completed the multisig address
Diffstat (limited to '')
-rw-r--r-- | src/simplewallet/simplewallet.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp index 891253830..e767da8aa 100644 --- a/src/simplewallet/simplewallet.cpp +++ b/src/simplewallet/simplewallet.cpp @@ -1091,7 +1091,9 @@ bool simple_wallet::make_multisig_main(const std::vector<std::string> &args, boo auto local_args = args; local_args.erase(local_args.begin()); std::string multisig_extra_info = m_wallet->make_multisig(orig_pwd_container->password(), local_args, threshold); - if (!multisig_extra_info.empty()) + bool ready; + m_wallet->multisig(&ready); + if (!ready) { success_msg_writer() << tr("Another step is needed"); success_msg_writer() << multisig_extra_info; @@ -1152,7 +1154,7 @@ bool simple_wallet::exchange_multisig_keys_main(const std::vector<std::string> & return false; } - if (args.size() < 2) + if (args.size() < 1) { PRINT_USAGE(USAGE_EXCHANGE_MULTISIG_KEYS); return false; @@ -1161,7 +1163,9 @@ bool simple_wallet::exchange_multisig_keys_main(const std::vector<std::string> & try { std::string multisig_extra_info = m_wallet->exchange_multisig_keys(orig_pwd_container->password(), args); - if (!multisig_extra_info.empty()) + bool ready; + m_wallet->multisig(&ready); + if (!ready) { message_writer() << tr("Another step is needed"); message_writer() << multisig_extra_info; |