Changeset View
Changeset View
Standalone View
Standalone View
src/interfaces/chain.h
Show First 20 Lines • Show All 205 Lines • ▼ Show 20 Lines | public: | ||||
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 | //! 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, | ||||
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. | //! Check if transaction will pass the mempool's chain limits. | ||||
▲ Show 20 Lines • Show All 133 Lines • Show Last 20 Lines |