Changeset View
Changeset View
Standalone View
Standalone View
src/interfaces/chain.h
Show First 20 Lines • Show All 163 Lines • ▼ Show 20 Lines | public: | ||||
//! Estimate fraction of total transactions verified if blocks up to | //! Estimate fraction of total transactions verified if blocks up to | ||||
//! the specified block hash are verified. | //! the specified block hash are verified. | ||||
virtual double guessVerificationProgress(const BlockHash &block_hash) = 0; | virtual double guessVerificationProgress(const BlockHash &block_hash) = 0; | ||||
//! Check if transaction has descendants in mempool. | //! Check if transaction has descendants in mempool. | ||||
virtual bool hasDescendantsInMempool(const TxId &txid) = 0; | virtual bool hasDescendantsInMempool(const TxId &txid) = 0; | ||||
//! Relay transaction. | |||||
virtual void relayTransaction(const TxId &txid) = 0; | |||||
//! Transaction is added to memory pool, if the transaction fee is below the | |||||
//! amount specified by max_tx_fee, and broadcast to all peers if relay is | |||||
//! set to true. Return false if the transaction could not be added due to | |||||
//! the fee or for another reason. | |||||
virtual bool broadcastTransaction(const Config &config, | |||||
const CTransactionRef &tx, | |||||
std::string &err_string, | |||||
const Amount &max_tx_fee, bool relay) = 0; | |||||
//! Calculate mempool ancestor and descendant counts for the given | //! Calculate mempool ancestor and descendant counts for the given | ||||
//! transaction. | //! transaction. | ||||
virtual void getTransactionAncestry(const TxId &txid, size_t &ancestors, | virtual void getTransactionAncestry(const TxId &txid, size_t &ancestors, | ||||
size_t &descendants) = 0; | size_t &descendants) = 0; | ||||
//! Relay transaction. | |||||
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; | ||||
//! Estimate fee | //! Estimate fee | ||||
virtual CFeeRate estimateFee() const = 0; | virtual CFeeRate estimateFee() const = 0; | ||||
//! Relay current minimum fee (from -minrelaytxfee settings). | //! Relay current minimum fee (from -minrelaytxfee settings). | ||||
virtual CFeeRate relayMinFee() = 0; | virtual CFeeRate relayMinFee() = 0; | ||||
▲ Show 20 Lines • Show All 132 Lines • Show Last 20 Lines |