Changeset View
Changeset View
Standalone View
Standalone View
src/interfaces/chain.cpp
Show First 20 Lines • Show All 72 Lines • ▼ Show 20 Lines | public: | ||||
: m_notifications(std::move(notifications)) {} | : m_notifications(std::move(notifications)) {} | ||||
virtual ~NotificationsProxy() = default; | virtual ~NotificationsProxy() = default; | ||||
void TransactionAddedToMempool(const CTransactionRef &tx) override { | void TransactionAddedToMempool(const CTransactionRef &tx) override { | ||||
m_notifications->transactionAddedToMempool(tx); | m_notifications->transactionAddedToMempool(tx); | ||||
} | } | ||||
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) override { | ||||
const CBlockIndex *index, | m_notifications->blockConnected(*block, index->nHeight); | ||||
const std::vector<CTransactionRef> &tx_conflicted) override { | |||||
m_notifications->blockConnected(*block, tx_conflicted, | |||||
index->nHeight); | |||||
} | } | ||||
void BlockDisconnected(const std::shared_ptr<const CBlock> &block, | void BlockDisconnected(const std::shared_ptr<const CBlock> &block, | ||||
const CBlockIndex *index) override { | const CBlockIndex *index) override { | ||||
m_notifications->blockDisconnected(*block, index->nHeight); | 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 { | ||||
▲ Show 20 Lines • Show All 360 Lines • Show Last 20 Lines |