aboutsummaryrefslogtreecommitdiff
path: root/src/blockchain_db/blockchain_db.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/blockchain_db.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 'src/blockchain_db/blockchain_db.cpp')
-rw-r--r--src/blockchain_db/blockchain_db.cpp5
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();