Changeset View
Changeset View
Standalone View
Standalone View
src/interfaces/chain.h
Show First 20 Lines • Show All 216 Lines • ▼ Show 20 Lines | public: | ||||
virtual Amount maxTxFee() = 0; | virtual Amount maxTxFee() = 0; | ||||
//! Check if pruning is enabled. | //! Check if pruning is enabled. | ||||
virtual bool getPruneMode() = 0; | virtual bool getPruneMode() = 0; | ||||
//! Check if p2p enabled. | //! Check if p2p enabled. | ||||
virtual bool p2pEnabled() = 0; | virtual bool p2pEnabled() = 0; | ||||
//! Check if the node is ready to broadcast transactions. | |||||
virtual bool isReadyToBroadcast() = 0; | |||||
//! Check if in IBD. | //! Check if in IBD. | ||||
virtual bool isInitialBlockDownload() = 0; | virtual bool isInitialBlockDownload() = 0; | ||||
//! Check if shutdown requested. | //! Check if shutdown requested. | ||||
virtual bool shutdownRequested() = 0; | virtual bool shutdownRequested() = 0; | ||||
//! Get adjusted time. | //! Get adjusted time. | ||||
virtual int64_t getAdjustedTime() = 0; | virtual int64_t getAdjustedTime() = 0; | ||||
Show All 22 Lines | public: | ||||
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) {} | virtual void BlockDisconnected(const CBlock &block) {} | ||||
virtual void UpdatedBlockTip() {} | virtual void UpdatedBlockTip() {} | ||||
virtual void ChainStateFlushed(const CBlockLocator &locator) {} | virtual void ChainStateFlushed(const CBlockLocator &locator) {} | ||||
virtual void ResendWalletTransactions(Lock &locked_chain) {} | |||||
}; | }; | ||||
//! Register handler for notifications. | //! Register handler for notifications. | ||||
virtual std::unique_ptr<Handler> | virtual std::unique_ptr<Handler> | ||||
handleNotifications(Notifications ¬ifications) = 0; | handleNotifications(Notifications ¬ifications) = 0; | ||||
//! Wait for pending notifications to be handled. | //! Wait for pending notifications to be handled. | ||||
virtual void waitForNotifications() = 0; | virtual void waitForNotifications() = 0; | ||||
▲ Show 20 Lines • Show All 48 Lines • Show Last 20 Lines |