Changeset View
Changeset View
Standalone View
Standalone View
src/interfaces/chain.h
Show First 20 Lines • Show All 261 Lines • ▼ Show 20 Lines | public: | ||||
//! current mempool transactions to the specified handler and return after | //! current mempool transactions to the specified handler and return after | ||||
//! the last one is sent. These notifications aren't coordinated with async | //! the last one is sent. These notifications aren't coordinated with async | ||||
//! notifications sent by handleNotifications, so out of date async | //! notifications sent by handleNotifications, so out of date async | ||||
//! notifications from handleNotifications can arrive during and after | //! notifications from handleNotifications can arrive during and after | ||||
//! synchronous notifications from requestMempoolTransactions. Clients need | //! synchronous notifications from requestMempoolTransactions. Clients need | ||||
//! to be prepared to handle this by ignoring notifications about unknown | //! to be prepared to handle this by ignoring notifications about unknown | ||||
//! removed transactions and already added new transactions. | //! removed transactions and already added new transactions. | ||||
virtual void requestMempoolTransactions(Notifications ¬ifications) = 0; | virtual void requestMempoolTransactions(Notifications ¬ifications) = 0; | ||||
//! This Chain's parameters | |||||
virtual const CChainParams ¶ms() const = 0; | |||||
}; | }; | ||||
//! Interface to let node manage chain clients (wallets, or maybe tools for | //! Interface to let node manage chain clients (wallets, or maybe tools for | ||||
//! monitoring and analysis in the future). | //! monitoring and analysis in the future). | ||||
class ChainClient { | class ChainClient { | ||||
public: | public: | ||||
virtual ~ChainClient() {} | virtual ~ChainClient() {} | ||||
Show All 36 Lines |