diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-10-07 10:23:01 +0100 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-10-07 11:21:11 +0100 |
commit | 06fb9bcfcc1eda4d8a51ee448c20a08e79c3facb (patch) | |
tree | 00c253474a57c77a60aa1279d7bbef0fee6aefbc /src | |
parent | Merge pull request #2548 (diff) | |
download | monero-06fb9bcfcc1eda4d8a51ee448c20a08e79c3facb.tar.xz |
wallet2: fix refresh height calc for new wallets
Diffstat (limited to '')
-rw-r--r-- | src/wallet/wallet2.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index dc4f4879b..8a3d803f1 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -2223,14 +2223,6 @@ crypto::secret_key wallet2::generate(const std::string& wallet_, const std::stri m_refresh_from_block_height = height >= blocks_per_month ? height - blocks_per_month : 0; } - if(m_refresh_from_block_height == 0 && !recover){ - // Wallets created offline don't know blockchain height. - // Set blockchain height calculated from current date/time - uint64_t approx_blockchain_height = get_approximate_blockchain_height(); - if(approx_blockchain_height > 0) { - m_refresh_from_block_height = approx_blockchain_height >= blocks_per_month ? approx_blockchain_height - blocks_per_month : 0; - } - } bool r = store_keys(m_keys_file, password, false); THROW_WALLET_EXCEPTION_IF(!r, error::file_save_error, m_keys_file); |