aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_core/blockchain.cpp
diff options
context:
space:
mode:
authorwarptangent <warptangent@tutanota.com>2016-02-08 07:51:57 -0800
committerwarptangent <warptangent@tutanota.com>2016-02-08 09:28:17 -0800
commit3800875406fecab5123564e58ddb698bce550441 (patch)
treee206b07ff8f3ae314467ceca40661ba221689b0a /src/cryptonote_core/blockchain.cpp
parentBlockchainDB/LMDB: Refactor block-scope DB txn handling for add block (diff)
downloadmonero-3800875406fecab5123564e58ddb698bce550441.tar.xz
Make HardFork object available to BlockchainDB and derived DB implementations
This will later allow the HardFork object's DB update functions to be called when the DB transaction that persists across block add/remove is open.
Diffstat (limited to 'src/cryptonote_core/blockchain.cpp')
-rw-r--r--src/cryptonote_core/blockchain.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cryptonote_core/blockchain.cpp b/src/cryptonote_core/blockchain.cpp
index e43875bdc..94ef4b894 100644
--- a/src/cryptonote_core/blockchain.cpp
+++ b/src/cryptonote_core/blockchain.cpp
@@ -290,6 +290,8 @@ bool Blockchain::init(BlockchainDB* db, const bool testnet, const bool fakechain
}
m_hardfork->init();
+ m_db->set_hard_fork(m_hardfork);
+
// if the blockchain is new, add the genesis block
// this feels kinda kludgy to do it this way, but can be looked at later.
// TODO: add function to create and store genesis block,