diff options
author | Riccardo Spagni <ric@spagni.net> | 2018-03-14 16:17:59 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2018-03-14 16:17:59 +0200 |
commit | 2fe1504c03eb0d14d1893c15691951e8b435b87e (patch) | |
tree | 57b462c4a04dee56eb16c9919da2ee0529d25a32 | |
parent | Merge pull request #3395 (diff) | |
parent | wallet2: fix use_fork_rules() when querying version that is defined but not e... (diff) | |
download | monero-2fe1504c03eb0d14d1893c15691951e8b435b87e.tar.xz |
Merge pull request #3399
1d39b265 wallet2: fix use_fork_rules() when querying version that is defined but not enabled yet (stoffu)
-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 8b29e71db..fcc7a73d0 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -7449,7 +7449,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 |