Changeset View
Changeset View
Standalone View
Standalone View
src/interfaces/chain.cpp
Show First 20 Lines • Show All 69 Lines • ▼ Show 20 Lines | namespace { | ||||
public: | public: | ||||
explicit NotificationsProxy( | explicit NotificationsProxy( | ||||
std::shared_ptr<Chain::Notifications> notifications) | std::shared_ptr<Chain::Notifications> notifications) | ||||
: 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 | ||||
m_notifications->transactionRemovedFromMempool(tx); | TransactionRemovedFromMempool(const CTransactionRef &tx, | ||||
MemPoolRemovalReason reason) override { | |||||
m_notifications->transactionRemovedFromMempool(tx, reason); | |||||
} | } | ||||
void BlockConnected(const std::shared_ptr<const CBlock> &block, | void BlockConnected(const std::shared_ptr<const CBlock> &block, | ||||
const CBlockIndex *index) override { | const CBlockIndex *index) override { | ||||
m_notifications->blockConnected(*block, index->nHeight); | m_notifications->blockConnected(*block, 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); | ||||
▲ Show 20 Lines • Show All 383 Lines • Show Last 20 Lines |