Changeset View
Changeset View
Standalone View
Standalone View
src/interfaces/chain.h
Show All 22 Lines | |||||
class CScheduler; | class CScheduler; | ||||
class CValidationState; | class CValidationState; | ||||
namespace Consensus { | namespace Consensus { | ||||
struct Params; | struct Params; | ||||
} | } | ||||
namespace interfaces { | namespace interfaces { | ||||
class Wallet; | |||||
//! Interface for giving wallet processes access to blockchain state. | //! Interface for giving wallet processes access to blockchain state. | ||||
class Chain { | class Chain { | ||||
public: | public: | ||||
virtual ~Chain() {} | virtual ~Chain() {} | ||||
//! Interface for querying locked chain state, used by legacy code that | //! Interface for querying locked chain state, used by legacy code that | ||||
//! assumes state won't change between calls. New code should avoid using | //! assumes state won't change between calls. New code should avoid using | ||||
//! the Lock interface and instead call higher-level Chain methods | //! the Lock interface and instead call higher-level Chain methods | ||||
▲ Show 20 Lines • Show All 143 Lines • ▼ Show 20 Lines | public: | ||||
//! Send init message. | //! Send init message. | ||||
virtual void initMessage(const std::string &message) = 0; | virtual void initMessage(const std::string &message) = 0; | ||||
//! Send init warning. | //! Send init warning. | ||||
virtual void initWarning(const std::string &message) = 0; | virtual void initWarning(const std::string &message) = 0; | ||||
//! Send init error. | //! Send init error. | ||||
virtual void initError(const std::string &message) = 0; | virtual void initError(const std::string &message) = 0; | ||||
//! Send wallet load notification to the GUI. | |||||
virtual void loadWallet(std::unique_ptr<Wallet> wallet) = 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 |