aboutsummaryrefslogtreecommitdiff
path: root/src/gen_multisig/gen_multisig.cpp
diff options
context:
space:
mode:
authorkoe <ukoe@protonmail.com>2021-08-11 07:35:43 -0500
committerkoe <ukoe@protonmail.com>2023-02-28 12:54:40 -0600
commit8d94d088166ec051b886857a5e16b08a7ca5bf00 (patch)
tree1a34d6eb6e9a822bf8fc8617c71918cf8fef213a /src/gen_multisig/gen_multisig.cpp
parentMerge pull request #8737 (diff)
downloadmonero-8d94d088166ec051b886857a5e16b08a7ca5bf00.tar.xz
replace 'multisig()' with 'get_multisig_status()' using multisig_account_status and including '.kex_is_done' member
Diffstat (limited to 'src/gen_multisig/gen_multisig.cpp')
-rw-r--r--src/gen_multisig/gen_multisig.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/gen_multisig/gen_multisig.cpp b/src/gen_multisig/gen_multisig.cpp
index eedd1511d..45de58273 100644
--- a/src/gen_multisig/gen_multisig.cpp
+++ b/src/gen_multisig/gen_multisig.cpp
@@ -121,16 +121,15 @@ static bool generate_multisig(uint32_t threshold, uint32_t total, const std::str
}
// exchange keys until the wallets are done
- bool ready{false};
- wallets[0]->multisig(&ready);
- while (!ready)
+ multisig::multisig_account_status ms_status{wallets[0]->get_multisig_status()};
+ while (!ms_status.is_ready)
{
for (size_t n = 0; n < total; ++n)
{
kex_msgs_intermediate[n] = wallets[n]->exchange_multisig_keys(pwd_container->password(), kex_msgs_intermediate);
}
- wallets[0]->multisig(&ready);
+ ms_status = wallets[0]->get_multisig_status();
}
std::string address = wallets[0]->get_account().get_public_address_str(wallets[0]->nettype());