diff options
author | j-berman <justinberman@protonmail.com> | 2022-09-01 16:25:28 -0700 |
---|---|---|
committer | j-berman <justinberman@protonmail.com> | 2022-09-01 16:25:28 -0700 |
commit | fc8a5d68f1f4cbddeddac8a5f0c8f59c2b68229a (patch) | |
tree | 643f6a1ad54469e5c2a41c2979ccd1731dc51b01 /tests/unit_tests/multisig.cpp | |
parent | Merge pull request #8492 (diff) | |
download | monero-fc8a5d68f1f4cbddeddac8a5f0c8f59c2b68229a.tar.xz |
multisig: fix #8537 seed restore (suggestions by @UkoeHB)
- spend secret key is no longer the sum of multisig key shares;
no need to check that is the case upon restore.
- restoring a multisig wallet from multisig info means that the
wallet must have already completed all setup rounds. Upon restore,
set the number of rounds completed accordingly.
Diffstat (limited to 'tests/unit_tests/multisig.cpp')
-rw-r--r-- | tests/unit_tests/multisig.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unit_tests/multisig.cpp b/tests/unit_tests/multisig.cpp index 5ddd78955..8f8ad52e1 100644 --- a/tests/unit_tests/multisig.cpp +++ b/tests/unit_tests/multisig.cpp @@ -171,7 +171,7 @@ static void make_wallets(std::vector<tools::wallet2>& wallets, unsigned int M) { ASSERT_TRUE(wallets.size() > 1 && wallets.size() <= KEYS_COUNT); ASSERT_TRUE(M <= wallets.size()); - std::uint32_t total_rounds_required = multisig::multisig_kex_rounds_required(wallets.size(), M) + 1; + std::uint32_t total_rounds_required = multisig::multisig_setup_rounds_required(wallets.size(), M); std::uint32_t rounds_complete{0}; // initialize wallets, get first round multisig kex msgs |