Bitcoin
Functions
transaction.cpp File Reference
#include <consensus/validation.h>
#include <net.h>
#include <txmempool.h>
#include <util/validation.h>
#include <validation.h>
#include <validationinterface.h>
#include <node/transaction.h>
#include <future>

Functions

TransactionError BroadcastTransaction (const CTransactionRef tx, uint256 &hashTx, std::string &err_string, const CAmount &highfee)
 

Function Documentation

◆ BroadcastTransaction()

TransactionError BroadcastTransaction ( CTransactionRef  tx,
uint256 txid,
std::string &  err_string,
const CAmount highfee 
)

Broadcast a transaction

Parameters
[in]txthe transaction to broadcast
[out]&txidthe txid of the transaction, if successfully broadcast
[out]&err_stringreference to std::string to fill with error string if available
[in]highfeeReject txs with fees higher than this (if 0, accept any fee) return error