Changeset View
Changeset View
Standalone View
Standalone View
src/interfaces/chain.cpp
Show First 20 Lines • Show All 320 Lines • ▼ Show 20 Lines | public: | ||||
} | } | ||||
bool hasDescendantsInMempool(const TxId &txid) override { | bool hasDescendantsInMempool(const TxId &txid) override { | ||||
LOCK(::g_mempool.cs); | LOCK(::g_mempool.cs); | ||||
auto it = ::g_mempool.GetIter(txid); | auto it = ::g_mempool.GetIter(txid); | ||||
return it && (*it)->GetCountWithDescendants() > 1; | return it && (*it)->GetCountWithDescendants() > 1; | ||||
} | } | ||||
bool broadcastTransaction(const Config &config, | 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, | std::string &err_string) override { | ||||
bool relay) override { | |||||
const TransactionError err = BroadcastTransaction( | const TransactionError err = BroadcastTransaction( | ||||
m_node, config, tx, err_string, max_tx_fee, relay, | m_node, config, tx, err_string, max_tx_fee, relay, | ||||
/*wait_callback*/ false); | /*wait_callback*/ false); | ||||
// Chain clients only care about failures to accept the tx to the | // Chain clients only care about failures to accept the tx to the | ||||
// mempool. Disregard non-mempool related failures. Note: this will | // mempool. Disregard non-mempool related failures. Note: this will | ||||
// need to be updated if BroadcastTransactions() is updated to | // need to be updated if BroadcastTransactions() is updated to | ||||
// return other non-mempool failures that Chain clients do not need | // return other non-mempool failures that Chain clients do not need | ||||
// to know about. | // to know about. | ||||
▲ Show 20 Lines • Show All 114 Lines • Show Last 20 Lines |