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/blockchain_db/blockchain_db.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 '')
-rw-r--r-- | src/blockchain_db/blockchain_db.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/blockchain_db/blockchain_db.cpp b/src/blockchain_db/blockchain_db.cpp index b504f946a..4b05ddf24 100644 --- a/src/blockchain_db/blockchain_db.cpp +++ b/src/blockchain_db/blockchain_db.cpp @@ -138,6 +138,11 @@ uint64_t BlockchainDB::add_block( const block& blk return prev_height; } +void BlockchainDB::set_hard_fork(HardFork*& hf) +{ + m_hardfork = hf; +} + void BlockchainDB::pop_block(block& blk, std::vector<transaction>& txs) { blk = get_top_block(); |