Changeset View
Changeset View
Standalone View
Standalone View
src/interfaces/chain.h
Show First 20 Lines • Show All 241 Lines • ▼ Show 20 Lines | public: | ||||
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; | ||||
//! Wait for pending notifications to be processed unless block hash points | //! Wait for pending notifications to be processed unless block hash points | ||||
//! to the current chain tip, or to a possible descendant of the current | //! to the current chain tip. | ||||
//! chain tip that isn't currently connected. | virtual void waitForNotificationsIfTipChanged(const BlockHash &old_tip) = 0; | ||||
virtual void | |||||
waitForNotificationsIfNewBlocksConnected(const BlockHash &old_tip) = 0; | |||||
//! Register handler for RPC. Command is not copied, so reference | //! Register handler for RPC. Command is not copied, so reference | ||||
//! needs to remain valid until Handler is disconnected. | //! needs to remain valid until Handler is disconnected. | ||||
virtual std::unique_ptr<Handler> handleRpc(const CRPCCommand &command) = 0; | virtual std::unique_ptr<Handler> handleRpc(const CRPCCommand &command) = 0; | ||||
//! Check if deprecated RPC is enabled. | //! Check if deprecated RPC is enabled. | ||||
virtual bool rpcEnableDeprecated(const std::string &method) = 0; | virtual bool rpcEnableDeprecated(const std::string &method) = 0; | ||||
▲ Show 20 Lines • Show All 61 Lines • Show Last 20 Lines |