diff options
author | warptangent <warptangent@tutanota.com> | 2016-02-08 07:51:57 -0800 |
---|---|---|
committer | warptangent <warptangent@tutanota.com> | 2016-02-08 09:28:17 -0800 |
commit | 3800875406fecab5123564e58ddb698bce550441 (patch) | |
tree | e206b07ff8f3ae314467ceca40661ba221689b0a /src/cryptonote_core/blockchain.cpp | |
parent | BlockchainDB/LMDB: Refactor block-scope DB txn handling for add block (diff) | |
download | monero-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.cpp | 2 |
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, |