diff options
author | j-berman <justinberman@protonmail.com> | 2023-08-17 13:29:46 -0700 |
---|---|---|
committer | j-berman <justinberman@protonmail.com> | 2023-08-17 13:29:46 -0700 |
commit | 759293de0867b6850f6c660c7523bca363a6fe96 (patch) | |
tree | 40201531f459fd682131904dd7508362530425af | |
parent | Merge pull request #8959 (diff) | |
download | monero-759293de0867b6850f6c660c7523bca363a6fe96.tar.xz |
wallet2: fix version check at hf version 1
-rw-r--r-- | src/wallet/wallet2.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index 6323c793c..ef68c88b2 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -3299,7 +3299,7 @@ void check_block_hard_fork_version(cryptonote::network_type nettype, uint8_t hf_ if (wallet_hard_forks[fork_index].version == hf_version) break; THROW_WALLET_EXCEPTION_IF(fork_index == wallet_num_hard_forks, error::wallet_internal_error, "Fork not found in table"); - uint64_t start_height = wallet_hard_forks[fork_index].height; + uint64_t start_height = hf_version == 1 ? 0 : wallet_hard_forks[fork_index].height; uint64_t end_height = fork_index == wallet_num_hard_forks - 1 ? std::numeric_limits<uint64_t>::max() : wallet_hard_forks[fork_index + 1].height; |