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 /tests/core_tests | |
| parent | d562deaaa950979b7a31a441a8f02a00013e26d6 (diff) | |
| download | monzero-core-0d6ecb113651ac99abd25a04fe4ddb9ac0a73c3e.tar.gz monzero-core-0d6ecb113651ac99abd25a04fe4ddb9ac0a73c3e.tar.xz monzero-core-0d6ecb113651ac99abd25a04fe4ddb9ac0a73c3e.zip | |
multisig: add post-kex verification round to check that all participants have completed the multisig address
Diffstat (limited to 'tests/core_tests')
| -rw-r--r-- | tests/core_tests/multisig.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/tests/core_tests/multisig.cpp b/tests/core_tests/multisig.cpp index 73bc1f104..a397d388d 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(); } } |
