Changeset View
Changeset View
Standalone View
Standalone View
src/interfaces/chain.h
Show First 20 Lines • Show All 194 Lines • ▼ Show 20 Lines | virtual void getTransactionAncestry(const TxId &txid, size_t &ancestors, | ||||
size_t &descendants) = 0; | size_t &descendants) = 0; | ||||
//! Relay transaction. | //! Relay transaction. | ||||
virtual void relayTransaction(const TxId &txid) = 0; | virtual void relayTransaction(const TxId &txid) = 0; | ||||
//! Check if transaction will pass the mempool's chain limits. | //! Check if transaction will pass the mempool's chain limits. | ||||
virtual bool checkChainLimits(const CTransactionRef &tx) = 0; | virtual bool checkChainLimits(const CTransactionRef &tx) = 0; | ||||
//! Relay current minimum fee (from -minrelaytxfee settings). | |||||
virtual CFeeRate relayMinFee() = 0; | |||||
//! Relay dust fee setting (-dustrelayfee), reflecting lowest rate it's | |||||
//! economical to spend. | |||||
virtual CFeeRate relayDustFee() = 0; | |||||
//! Get node max tx fee setting (-maxtxfee). | //! Get node max tx fee setting (-maxtxfee). | ||||
//! This could be replaced by a per-wallet max fee, as proposed at | //! This could be replaced by a per-wallet max fee, as proposed at | ||||
//! https://github.com/bitcoin/bitcoin/issues/15355 | //! https://github.com/bitcoin/bitcoin/issues/15355 | ||||
//! But for the time being, wallets call this to access the node setting. | //! But for the time being, wallets call this to access the node setting. | ||||
virtual Amount maxTxFee() = 0; | virtual Amount maxTxFee() = 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; | ||||
// Check if in IBD. | //! Check if in IBD. | ||||
virtual bool isInitialBlockDownload() = 0; | virtual bool isInitialBlockDownload() = 0; | ||||
//! Check if shutdown requested. | |||||
virtual bool shutdownRequested() = 0; | |||||
//! Get adjusted time. | //! Get adjusted time. | ||||
virtual int64_t getAdjustedTime() = 0; | virtual int64_t getAdjustedTime() = 0; | ||||
//! 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. | //! Send wallet load notification to the GUI. | ||||
virtual void loadWallet(std::unique_ptr<Wallet> wallet) = 0; | virtual void loadWallet(std::unique_ptr<Wallet> wallet) = 0; | ||||
//! Send progress indicator. | |||||
virtual void showProgress(const std::string &title, int progress, | |||||
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) { | ||||
} | } | ||||
virtual void | virtual void | ||||
▲ Show 20 Lines • Show All 62 Lines • Show Last 20 Lines |