Changeset View
Changeset View
Standalone View
Standalone View
src/interfaces/chain.h
Show First 20 Lines • Show All 157 Lines • ▼ Show 20 Lines | public: | ||||
//! Check chain limits. | //! Check chain limits. | ||||
virtual bool checkChainLimits(CTransactionRef tx) = 0; | virtual bool checkChainLimits(CTransactionRef tx) = 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; | ||||
//! Get adjusted time. | |||||
virtual int64_t getAdjustedTime() = 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 |