aboutsummaryrefslogtreecommitdiff
path: root/src/blockchain_db/berkeleydb/db_bdb.cpp
diff options
context:
space:
mode:
authorwarptangent <warptangent@tutanota.com>2016-02-08 07:51:57 -0800
committerwarptangent <warptangent@tutanota.com>2016-02-08 09:28:17 -0800
commit3800875406fecab5123564e58ddb698bce550441 (patch)
treee206b07ff8f3ae314467ceca40661ba221689b0a /src/blockchain_db/berkeleydb/db_bdb.cpp
parentBlockchainDB/LMDB: Refactor block-scope DB txn handling for add block (diff)
downloadmonero-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/berkeleydb/db_bdb.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/blockchain_db/berkeleydb/db_bdb.cpp b/src/blockchain_db/berkeleydb/db_bdb.cpp
index f572ddf9d..cdbca52f9 100644
--- a/src/blockchain_db/berkeleydb/db_bdb.cpp
+++ b/src/blockchain_db/berkeleydb/db_bdb.cpp
@@ -781,6 +781,8 @@ BlockchainBDB::BlockchainBDB(bool batch_transactions) :
m_batch_transactions = batch_transactions;
m_write_txn = nullptr;
m_height = 0;
+
+ m_hardfork = nullptr;
}
void BlockchainBDB::open(const std::string& filename, const int db_flags)