diff options
author | Riccardo Spagni <ric@spagni.net> | 2019-01-28 21:31:47 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2019-01-28 21:31:47 +0200 |
commit | b7719022fd10671827b9e13b19867a8bfb44aff4 (patch) | |
tree | f9a2da89cd1d98c446ffda4480d50b1c63cb057e | |
parent | Merge pull request #5065 (diff) | |
parent | wallet2: fix incorrect patch for determining fork rules (diff) | |
download | monero-b7719022fd10671827b9e13b19867a8bfb44aff4.tar.xz |
Merge pull request #5068
96e35506 wallet2: fix incorrect patch for determining fork rules (moneromooo-monero)
Diffstat (limited to '')
-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 7a7d0ad64..a8fe9c7cb 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -9628,7 +9628,7 @@ bool wallet2::use_fork_rules(uint8_t version, int64_t early_blocks) const result = m_node_rpc_proxy.get_earliest_height(version, earliest_height); throw_on_rpc_response_error(result, "get_hard_fork_info"); - bool close_enough = height >= earliest_height - early_blocks; // start using the rules that many blocks beforehand + bool close_enough = height >= earliest_height - early_blocks && earliest_height != std::numeric_limits<uint64_t>::max(); // start using the rules that many blocks beforehand if (close_enough) LOG_PRINT_L2("Using v" << (unsigned)version << " rules"); else |