aboutsummaryrefslogtreecommitdiff
path: root/tests/core_tests/multisig.cpp
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2022-05-10 16:41:02 -0500
committerluigi1111 <luigi1111w@gmail.com>2022-05-10 16:41:02 -0500
commitc1625a89287498eed36ad360217509eaaaf0b02e (patch)
tree87af8ade4a7bafb5b3e4d7afec1a46c5744df95b /tests/core_tests/multisig.cpp
parentMerge pull request #8275 (diff)
parentmultisig: add post-kex verification round to check that all participants have... (diff)
downloadmonero-c1625a89287498eed36ad360217509eaaaf0b02e.tar.xz
Merge pull request #8220
0d6ecb1 multisig: add post-kex verification round to check that all participants have completed the multisig address (koe)
Diffstat (limited to 'tests/core_tests/multisig.cpp')
-rw-r--r--tests/core_tests/multisig.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/tests/core_tests/multisig.cpp b/tests/core_tests/multisig.cpp
index 758938e5b..58d60fd90 100644
--- a/tests/core_tests/multisig.cpp
+++ b/tests/core_tests/multisig.cpp
@@ -81,9 +81,7 @@ static bool make_multisig_accounts(std::vector<cryptonote::account_base> &accoun
for (std::size_t account_index{0}; account_index < accounts.size(); ++account_index)
{
multisig_accounts[account_index].initialize_kex(threshold, signers, round_msgs);
-
- if (!multisig_accounts[account_index].multisig_is_ready())
- temp_round_msgs[account_index] = multisig_accounts[account_index].get_next_kex_round_msg();
+ temp_round_msgs[account_index] = multisig_accounts[account_index].get_next_kex_round_msg();
}
// perform key exchange rounds
@@ -94,9 +92,7 @@ static bool make_multisig_accounts(std::vector<cryptonote::account_base> &accoun
for (std::size_t account_index{0}; account_index < multisig_accounts.size(); ++account_index)
{
multisig_accounts[account_index].kex_update(round_msgs);
-
- if (!multisig_accounts[account_index].multisig_is_ready())
- temp_round_msgs[account_index] = multisig_accounts[account_index].get_next_kex_round_msg();
+ temp_round_msgs[account_index] = multisig_accounts[account_index].get_next_kex_round_msg();
}
}