Changeset View
Changeset View
Standalone View
Standalone View
src/interfaces/chain.h
Show First 20 Lines • Show All 199 Lines • ▼ Show 20 Lines | public: | ||||
//! amount specified by max_tx_fee, and broadcast to all peers if relay is | //! 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 | //! set to true. Return false if the transaction could not be added due to | ||||
//! the fee or for another reason. | //! the fee or for another reason. | ||||
virtual bool broadcastTransaction(const Config &config, | virtual bool broadcastTransaction(const Config &config, | ||||
const CTransactionRef &tx, | const CTransactionRef &tx, | ||||
const Amount &max_tx_fee, bool relay, | const Amount &max_tx_fee, bool relay, | ||||
std::string &err_string) = 0; | std::string &err_string) = 0; | ||||
//! Calculate mempool ancestor and descendant counts for the given | |||||
//! transaction. | |||||
virtual void getTransactionAncestry(const TxId &txid, size_t &ancestors, | |||||
size_t &descendants, | |||||
size_t *ancestorsize = nullptr, | |||||
Amount *ancestorfees = nullptr) = 0; | |||||
//! Get the node's package limits. | //! Get the node's package limits. | ||||
//! Currently only returns the ancestor and descendant count limits, but | //! Currently only returns the ancestor and descendant count limits, but | ||||
//! could be enhanced to return more policy settings. | //! could be enhanced to return more policy settings. | ||||
virtual void getPackageLimits(size_t &limit_ancestor_count, | virtual void getPackageLimits(size_t &limit_ancestor_count, | ||||
size_t &limit_descendant_count) = 0; | size_t &limit_descendant_count) = 0; | ||||
//! Check if transaction will pass the mempool's chain limits. | |||||
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; | ||||
//! Relay dust fee setting (-dustrelayfee), reflecting lowest rate it's | //! Relay dust fee setting (-dustrelayfee), reflecting lowest rate it's | ||||
//! economical to spend. | //! economical to spend. | ||||
▲ Show 20 Lines • Show All 124 Lines • Show Last 20 Lines |