Changeset View
Changeset View
Standalone View
Standalone View
src/interfaces/chain.h
Show All 19 Lines | |||||
class CBlock; | class CBlock; | ||||
class CChainParams; | class CChainParams; | ||||
class Coin; | class Coin; | ||||
class Config; | class Config; | ||||
class CRPCCommand; | class CRPCCommand; | ||||
class CScheduler; | class CScheduler; | ||||
class TxValidationState; | class TxValidationState; | ||||
enum class MemPoolRemovalReason; | |||||
struct BlockHash; | struct BlockHash; | ||||
struct bilingual_str; | struct bilingual_str; | ||||
struct CBlockLocator; | struct CBlockLocator; | ||||
struct NodeContext; | struct NodeContext; | ||||
namespace Consensus { | namespace Consensus { | ||||
struct Params; | struct Params; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 230 Lines • ▼ Show 20 Lines | public: | ||||
virtual void showProgress(const std::string &title, int progress, | virtual void showProgress(const std::string &title, int progress, | ||||
bool resume_possible) = 0; | bool resume_possible) = 0; | ||||
//! Chain notifications. | //! Chain notifications. | ||||
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, | ||||
MemPoolRemovalReason reason) {} | |||||
virtual void blockConnected(const CBlock &block, int height) {} | virtual void blockConnected(const CBlock &block, int height) {} | ||||
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> | ||||
▲ Show 20 Lines • Show All 84 Lines • Show Last 20 Lines |