mirror of
https://github.com/monero-project/monero.git
synced 2025-08-03 00:26:09 -04:00
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:
parent
fd46c96dce
commit
3800875406
5 changed files with 18 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue