Changeset View
Changeset View
Standalone View
Standalone View
src/interfaces/chain.h
Show First 20 Lines • Show All 202 Lines • ▼ Show 20 Lines | public: | ||||
virtual bool hasDescendantsInMempool(const TxId &txid) = 0; | virtual bool hasDescendantsInMempool(const TxId &txid) = 0; | ||||
//! Transaction is added to memory pool, if the transaction fee is below the | //! 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 | //! 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, | ||||
std::string &err_string, | const Amount &max_tx_fee, bool relay, | ||||
const Amount &max_tx_fee, bool relay) = 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) = 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 | ||||
▲ Show 20 Lines • Show All 143 Lines • Show Last 20 Lines |