aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet2.cpp
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2016-03-25 08:27:42 +0200
committerRiccardo Spagni <ric@spagni.net>2016-03-25 08:27:42 +0200
commit40b8a5f327c9c7e79f436e3fd007995a6a439d04 (patch)
tree0e4c9a35e9bbfcffcca4631d944031d0fbc7efb4 /src/wallet/wallet2.cpp
parentMerge pull request #749 (diff)
parentwallet: add a --generate-from-json flag (diff)
downloadmonero-40b8a5f327c9c7e79f436e3fd007995a6a439d04.tar.xz
Merge pull request #756
a2e378b wallet: add a --generate-from-json flag (moneromooo-monero)
Diffstat (limited to 'src/wallet/wallet2.cpp')
-rw-r--r--src/wallet/wallet2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp
index 2afe08cb1..1c7187cf0 100644
--- a/src/wallet/wallet2.cpp
+++ b/src/wallet/wallet2.cpp
@@ -490,7 +490,7 @@ void wallet2::process_new_blockchain_entry(const cryptonote::block& b, const cry
//handle transactions from new block
//optimization: seeking only for blocks that are not older then the wallet creation time plus 1 day. 1 day is for possible user incorrect time setup
- if(b.timestamp + 60*60*24 > m_account.get_createtime())
+ if(b.timestamp + 60*60*24 > m_account.get_createtime() && height >= m_refresh_from_block_height)
{
TIME_MEASURE_START(miner_tx_handle_time);
process_new_transaction(b.miner_tx, height, true);