Changeset View
Changeset View
Standalone View
Standalone View
src/interfaces/chain.cpp
Show First 20 Lines • Show All 159 Lines • ▼ Show 20 Lines | public: | ||||
} | } | ||||
void TransactionRemovedFromMempool(const CTransactionRef &tx) override { | void TransactionRemovedFromMempool(const CTransactionRef &tx) override { | ||||
m_notifications->TransactionRemovedFromMempool(tx); | m_notifications->TransactionRemovedFromMempool(tx); | ||||
} | } | ||||
void BlockConnected( | void BlockConnected( | ||||
const std::shared_ptr<const CBlock> &block, | const std::shared_ptr<const CBlock> &block, | ||||
const CBlockIndex *index, | const CBlockIndex *index, | ||||
const std::vector<CTransactionRef> &tx_conflicted) override { | const std::vector<CTransactionRef> &tx_conflicted) override { | ||||
m_notifications->BlockConnected(*block, tx_conflicted); | m_notifications->BlockConnected(*block, tx_conflicted, | ||||
index->nHeight); | |||||
} | } | ||||
void | void BlockDisconnected(const std::shared_ptr<const CBlock> &block, | ||||
BlockDisconnected(const std::shared_ptr<const CBlock> &block) override { | const CBlockIndex *index) override { | ||||
m_notifications->BlockDisconnected(*block); | m_notifications->BlockDisconnected(*block, index->nHeight); | ||||
} | } | ||||
void UpdatedBlockTip(const CBlockIndex *index, | void UpdatedBlockTip(const CBlockIndex *index, | ||||
const CBlockIndex *fork_index, | const CBlockIndex *fork_index, | ||||
bool is_ibd) override { | bool is_ibd) override { | ||||
m_notifications->UpdatedBlockTip(); | m_notifications->UpdatedBlockTip(); | ||||
} | } | ||||
void ChainStateFlushed(const CBlockLocator &locator) override { | void ChainStateFlushed(const CBlockLocator &locator) override { | ||||
m_notifications->ChainStateFlushed(locator); | m_notifications->ChainStateFlushed(locator); | ||||
▲ Show 20 Lines • Show All 250 Lines • Show Last 20 Lines |