Pass consensus parameters to block index insertion
This commit is contained in:
parent
f198b8713b
commit
49cc3f79a5
2 changed files with 8 additions and 4 deletions
|
|
@ -474,7 +474,9 @@ public:
|
|||
/** Clear all data members. */
|
||||
void Unload() EXCLUSIVE_LOCKS_REQUIRED(cs_main);
|
||||
|
||||
CBlockIndex* AddToBlockIndex(const CBlockHeader& block) EXCLUSIVE_LOCKS_REQUIRED(cs_main);
|
||||
CBlockIndex* AddToBlockIndex(
|
||||
const CBlockHeader& block,
|
||||
const Consensus::Params& consensus_params) EXCLUSIVE_LOCKS_REQUIRED(cs_main);
|
||||
/** Create a new block index entry for a given block hash */
|
||||
CBlockIndex* InsertBlockIndex(const uint256& hash) EXCLUSIVE_LOCKS_REQUIRED(cs_main);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue