mirror of
https://github.com/monero-project/monero.git
synced 2024-12-13 20:06:32 +02:00
blockchain_db: pass hard fork object as a simple pointer
This commit is contained in:
parent
a333c42cde
commit
8649b9f1ef
@ -139,7 +139,7 @@ uint64_t BlockchainDB::add_block( const block& blk
|
|||||||
return prev_height;
|
return prev_height;
|
||||||
}
|
}
|
||||||
|
|
||||||
void BlockchainDB::set_hard_fork(HardFork*& hf)
|
void BlockchainDB::set_hard_fork(HardFork* hf)
|
||||||
{
|
{
|
||||||
m_hardfork = hf;
|
m_hardfork = hf;
|
||||||
}
|
}
|
||||||
|
@ -377,7 +377,7 @@ public:
|
|||||||
virtual void block_txn_stop() = 0;
|
virtual void block_txn_stop() = 0;
|
||||||
virtual void block_txn_abort() = 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
|
// 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
|
// NOTE: subclass implementations of this (or the functions it calls) need
|
||||||
|
Loading…
Reference in New Issue
Block a user