MCPcopy Create free account
hub / github.com/ElementsProject/elements / broadcastTransaction

Method broadcastTransaction

src/node/interfaces.cpp:588–598  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

586 return it && (*it)->GetCountWithDescendants() > 1;
587 }
588 bool broadcastTransaction(const CTransactionRef& tx,
589 const CAmount& max_tx_fee,
590 bool relay,
591 std::string& err_string) override
592 {
593 const TransactionError err = BroadcastTransaction(m_node, tx, err_string, max_tx_fee, relay, /*wait_callback*/ false);
594 // Chain clients only care about failures to accept the tx to the mempool. Disregard non-mempool related failures.
595 // Note: this will need to be updated if BroadcastTransactions() is updated to return other non-mempool failures
596 // that Chain clients do not need to know about.
597 return TransactionError::OK == err;
598 }
599 void getTransactionAncestry(const uint256& txid, size_t& ancestors, size_t& descendants, size_t* ancestorsize, CAmount* ancestorfees) override
600 {
601 ancestors = descendants = 0;

Callers

nothing calls this directly

Calls 1

BroadcastTransactionFunction · 0.85

Tested by

no test coverage detected