diff options
author | Riccardo Spagni <ric@spagni.net> | 2017-10-15 18:47:16 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2017-10-15 18:47:16 +0200 |
commit | 5c3275ddbe80fe5739f1759d3a6bbb7d3fbf8c9a (patch) | |
tree | 9b84f40d42b1a6b8a2eb3004642a087c29e8d26c /src/wallet/wallet2.cpp | |
parent | Merge pull request #2592 (diff) | |
parent | wallet2: fix refresh height calc for new wallets (diff) | |
download | monero-5c3275ddbe80fe5739f1759d3a6bbb7d3fbf8c9a.tar.xz |
Merge pull request #2596
06fb9bcf wallet2: fix refresh height calc for new wallets (moneromooo-monero)
Diffstat (limited to 'src/wallet/wallet2.cpp')
-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 c6ba14dea..f316b5d1d 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -2447,14 +2447,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); |