mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-08 11:44:14 +01:00
[refactor] change ActiveTipChange to use CBlockIndex ref instead of ptr
This commit is contained in:
@@ -64,7 +64,7 @@ protected:
|
||||
/**
|
||||
* Notifies listeners any time the block chain tip changes, synchronously.
|
||||
*/
|
||||
virtual void ActiveTipChange(const CBlockIndex* new_tip, bool is_ibd) {};
|
||||
virtual void ActiveTipChange(const CBlockIndex& new_tip, bool is_ibd) {};
|
||||
/**
|
||||
* Notifies listeners of a transaction having been added to mempool.
|
||||
*
|
||||
@@ -218,7 +218,7 @@ public:
|
||||
void SyncWithValidationInterfaceQueue() LOCKS_EXCLUDED(cs_main);
|
||||
|
||||
void UpdatedBlockTip(const CBlockIndex *, const CBlockIndex *, bool fInitialDownload);
|
||||
void ActiveTipChange(const CBlockIndex*, bool);
|
||||
void ActiveTipChange(const CBlockIndex&, bool);
|
||||
void TransactionAddedToMempool(const NewMempoolTransactionInfo&, uint64_t mempool_sequence);
|
||||
void TransactionRemovedFromMempool(const CTransactionRef&, MemPoolRemovalReason, uint64_t mempool_sequence);
|
||||
void MempoolTransactionsRemovedForBlock(const std::vector<RemovedMempoolTransactionInfo>&, unsigned int nBlockHeight);
|
||||
|
||||
Reference in New Issue
Block a user