aboutsummaryrefslogtreecommitdiff
path: root/src/gen_multisig
diff options
context:
space:
mode:
Diffstat (limited to 'src/gen_multisig')
-rw-r--r--src/gen_multisig/gen_multisig.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gen_multisig/gen_multisig.cpp b/src/gen_multisig/gen_multisig.cpp
index eedd1511d..dfe5a70eb 100644
--- a/src/gen_multisig/gen_multisig.cpp
+++ b/src/gen_multisig/gen_multisig.cpp
@@ -125,11 +125,16 @@ static bool generate_multisig(uint32_t threshold, uint32_t total, const std::str
wallets[0]->multisig(&ready);
while (!ready)
{
+ std::vector<std::string> kex_msgs_for_round(total);
+
for (size_t n = 0; n < total; ++n)
{
- kex_msgs_intermediate[n] = wallets[n]->exchange_multisig_keys(pwd_container->password(), kex_msgs_intermediate);
+ kex_msgs_for_round[n] = wallets[n]->exchange_multisig_keys(pwd_container->password(), kex_msgs_intermediate);
}
+ // Update messages for next round
+ kex_msgs_intermediate = kex_msgs_for_round;
+
wallets[0]->multisig(&ready);
}