aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_core
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2015-12-08 20:08:50 +0200
committerRiccardo Spagni <ric@spagni.net>2015-12-08 20:08:56 +0200
commitd5496f72e51f791e7ded8e9209a9463ec9f7a1c8 (patch)
treee22354797a8f5c793be1f6d5d99e1bc3d2657f6d /src/cryptonote_core
parentMerge pull request #519 (diff)
parentblockchain_db: fixup missing key images in early DB version (diff)
downloadmonero-d5496f72e51f791e7ded8e9209a9463ec9f7a1c8.tar.xz
Merge pull request #520
a98e976 blockchain_db: fixup missing key images in early DB version (moneromooo-monero)
Diffstat (limited to 'src/cryptonote_core')
-rw-r--r--src/cryptonote_core/blockchain.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cryptonote_core/blockchain.cpp b/src/cryptonote_core/blockchain.cpp
index af7713972..2d71b61a1 100644
--- a/src/cryptonote_core/blockchain.cpp
+++ b/src/cryptonote_core/blockchain.cpp
@@ -293,6 +293,9 @@ bool Blockchain::init(BlockchainDB* db, const bool testnet)
{
}
+ // ensure we fixup anything we found and fix in the future
+ m_db->fixup();
+
// check how far behind we are
uint64_t top_block_timestamp = m_db->get_top_block_timestamp();
uint64_t timestamp_diff = time(NULL) - top_block_timestamp;