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/lmdb/db_lmdb.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/lmdb/db_lmdb.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/blockchain_db/lmdb/db_lmdb.cpp b/src/blockchain_db/lmdb/db_lmdb.cpp index 8bd64e70d..28e6f5525 100644 --- a/src/blockchain_db/lmdb/db_lmdb.cpp +++ b/src/blockchain_db/lmdb/db_lmdb.cpp @@ -945,6 +945,8 @@ BlockchainLMDB::BlockchainLMDB(bool batch_transactions) m_write_batch_txn = nullptr; m_batch_active = false; m_height = 0; + + m_hardfork = nullptr; } void BlockchainLMDB::open(const std::string& filename, const int mdb_flags) |