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.
This commit is contained in:
warptangent 2016-02-08 07:51:57 -08:00
parent fd46c96dce
commit 3800875406
No known key found for this signature in database
GPG key ID: 0E490BEBFBE4E92D
5 changed files with 18 additions and 0 deletions

View file

@ -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,