Changeset View
Changeset View
Standalone View
Standalone View
src/interfaces/chain.h
Show First 20 Lines • Show All 229 Lines • ▼ Show 20 Lines | public: | ||||
class Notifications { | class Notifications { | ||||
public: | public: | ||||
virtual ~Notifications() {} | virtual ~Notifications() {} | ||||
virtual void TransactionAddedToMempool(const CTransactionRef &tx) {} | virtual void TransactionAddedToMempool(const CTransactionRef &tx) {} | ||||
virtual void TransactionRemovedFromMempool(const CTransactionRef &ptx) { | virtual void TransactionRemovedFromMempool(const CTransactionRef &ptx) { | ||||
} | } | ||||
virtual void | virtual void | ||||
BlockConnected(const CBlock &block, | BlockConnected(const CBlock &block, | ||||
const std::vector<CTransactionRef> &tx_conflicted) {} | const std::vector<CTransactionRef> &tx_conflicted, | ||||
virtual void BlockDisconnected(const CBlock &block) {} | int height) {} | ||||
virtual void BlockDisconnected(const CBlock &block, int height) {} | |||||
virtual void UpdatedBlockTip() {} | virtual void UpdatedBlockTip() {} | ||||
virtual void ChainStateFlushed(const CBlockLocator &locator) {} | virtual void ChainStateFlushed(const CBlockLocator &locator) {} | ||||
}; | }; | ||||
//! Register handler for notifications. | //! Register handler for notifications. | ||||
virtual std::unique_ptr<Handler> | virtual std::unique_ptr<Handler> | ||||
handleNotifications(std::shared_ptr<Notifications> notifications) = 0; | handleNotifications(std::shared_ptr<Notifications> notifications) = 0; | ||||
▲ Show 20 Lines • Show All 74 Lines • Show Last 20 Lines |