MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / broadcastTransaction

Method broadcastTransaction

src/node/interfaces.cpp:685–695  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

683 return m_node.mempool->HasDescendants(txid);
684 }
685 bool broadcastTransaction(const CTransactionRef& tx,
686 const CAmount& max_tx_fee,
687 TxBroadcast broadcast_method,
688 std::string& err_string) override
689 {
690 const TransactionError err = BroadcastTransaction(m_node, tx, err_string, max_tx_fee, broadcast_method, /*wait_callback=*/false);
691 // Chain clients only care about failures to accept the tx to the mempool. Disregard non-mempool related failures.
692 // Note: this will need to be updated if BroadcastTransactions() is updated to return other non-mempool failures
693 // that Chain clients do not need to know about.
694 return TransactionError::OK == err;
695 }
696 void getTransactionAncestry(const Txid& txid, size_t& ancestors, size_t& cluster_count, size_t* ancestorsize, CAmount* ancestorfees) override
697 {
698 ancestors = cluster_count = 0;

Callers

nothing calls this directly

Calls 1

BroadcastTransactionFunction · 0.85

Tested by

no test coverage detected