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 /src/multisig/multisig_account_kex_impl.cpp | |
| parent | 727bc5b6878170332bf2d838f2c60d1c8dc685c8 (diff) | |
| download | monzero-core-fc8a5d68f1f4cbddeddac8a5f0c8f59c2b68229a.tar.gz monzero-core-fc8a5d68f1f4cbddeddac8a5f0c8f59c2b68229a.tar.xz monzero-core-fc8a5d68f1f4cbddeddac8a5f0c8f59c2b68229a.zip | |
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 'src/multisig/multisig_account_kex_impl.cpp')
| -rw-r--r-- | src/multisig/multisig_account_kex_impl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/multisig/multisig_account_kex_impl.cpp b/src/multisig/multisig_account_kex_impl.cpp index be9ed9cb2..443e84631 100644 --- a/src/multisig/multisig_account_kex_impl.cpp +++ b/src/multisig/multisig_account_kex_impl.cpp @@ -74,7 +74,7 @@ namespace multisig "Multisig threshold may not be larger than number of signers."); CHECK_AND_ASSERT_THROW_MES(threshold > 0, "Multisig threshold must be > 0."); CHECK_AND_ASSERT_THROW_MES(round > 0, "Multisig kex round must be > 0."); - CHECK_AND_ASSERT_THROW_MES(round <= multisig_kex_rounds_required(num_signers, threshold) + 1, + CHECK_AND_ASSERT_THROW_MES(round <= multisig_setup_rounds_required(num_signers, threshold), "Trying to process multisig kex for an invalid round."); } //---------------------------------------------------------------------------------------------------------------------- |
