diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-02-08 20:56:31 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-02-08 20:56:31 +0000 |
commit | 8649b9f1ef53375b40ac4a489bb8e56b82bb968c (patch) | |
tree | 2b6ffb25ef7f14b55f7d382f65140100e54bff82 /src/blockchain_db | |
parent | core_tests: add tests for hard fork behaviors (MRL-0004) (diff) | |
download | monero-8649b9f1ef53375b40ac4a489bb8e56b82bb968c.tar.xz |
blockchain_db: pass hard fork object as a simple pointer
Diffstat (limited to 'src/blockchain_db')
-rw-r--r-- | src/blockchain_db/blockchain_db.cpp | 2 | ||||
-rw-r--r-- | src/blockchain_db/blockchain_db.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/blockchain_db/blockchain_db.cpp b/src/blockchain_db/blockchain_db.cpp index 270b5399e..68bef3892 100644 --- a/src/blockchain_db/blockchain_db.cpp +++ b/src/blockchain_db/blockchain_db.cpp @@ -139,7 +139,7 @@ uint64_t BlockchainDB::add_block( const block& blk return prev_height; } -void BlockchainDB::set_hard_fork(HardFork*& hf) +void BlockchainDB::set_hard_fork(HardFork* hf) { m_hardfork = hf; } diff --git a/src/blockchain_db/blockchain_db.h b/src/blockchain_db/blockchain_db.h index 5926f34a5..bb4602061 100644 --- a/src/blockchain_db/blockchain_db.h +++ b/src/blockchain_db/blockchain_db.h @@ -377,7 +377,7 @@ public: virtual void block_txn_stop() = 0; virtual void block_txn_abort() = 0; - virtual void set_hard_fork(HardFork*& hf); + virtual void set_hard_fork(HardFork* hf); // adds a block with the given metadata to the top of the blockchain, returns the new height // NOTE: subclass implementations of this (or the functions it calls) need |