Changeset View
Changeset View
Standalone View
Standalone View
src/interfaces/chain.h
Show First 20 Lines • Show All 292 Lines • ▼ Show 20 Lines | public: | ||||
//! Save state to disk. | //! Save state to disk. | ||||
virtual void flush() = 0; | virtual void flush() = 0; | ||||
//! Shut down client. | //! Shut down client. | ||||
virtual void stop() = 0; | virtual void stop() = 0; | ||||
}; | }; | ||||
//! Return implementation of Chain interface. | //! Return implementation of Chain interface. | ||||
std::unique_ptr<Chain> MakeChain(NodeContext &node); | std::unique_ptr<Chain> MakeChain(NodeContext &node, const CChainParams ¶ms); | ||||
//! Return implementation of ChainClient interface for a wallet client. This | //! Return implementation of ChainClient interface for a wallet client. This | ||||
//! function will be undefined in builds where ENABLE_WALLET is false. | //! function will be undefined in builds where ENABLE_WALLET is false. | ||||
//! | //! | ||||
//! Currently, wallets are the only chain clients. But in the future, other | //! Currently, wallets are the only chain clients. But in the future, other | ||||
//! types of chain clients could be added, such as tools for monitoring, | //! types of chain clients could be added, such as tools for monitoring, | ||||
//! analysis, or fee estimation. These clients need to expose their own | //! analysis, or fee estimation. These clients need to expose their own | ||||
//! MakeXXXClient functions returning their implementations of the ChainClient | //! MakeXXXClient functions returning their implementations of the ChainClient | ||||
//! interface. | //! interface. | ||||
std::unique_ptr<ChainClient> | std::unique_ptr<ChainClient> | ||||
MakeWalletClient(Chain &chain, std::vector<std::string> wallet_filenames); | MakeWalletClient(Chain &chain, std::vector<std::string> wallet_filenames); | ||||
} // namespace interfaces | } // namespace interfaces | ||||
#endif // BITCOIN_INTERFACES_CHAIN_H | #endif // BITCOIN_INTERFACES_CHAIN_H |