Bitcoin
|
#include <attributes.h>
#include <primitives/transaction.h>
#include <uint256.h>
#include <util/error.h>
Go to the source code of this file.
Functions | |
NODISCARD TransactionError | BroadcastTransaction (CTransactionRef tx, uint256 &txid, std::string &err_string, const CAmount &highfee) |
NODISCARD TransactionError BroadcastTransaction | ( | CTransactionRef | tx, |
uint256 & | txid, | ||
std::string & | err_string, | ||
const CAmount & | highfee | ||
) |
Broadcast a transaction
[in] | tx | the transaction to broadcast |
[out] | &txid | the txid of the transaction, if successfully broadcast |
[out] | &err_string | reference to std::string to fill with error string if available |
[in] | highfee | Reject txs with fees higher than this (if 0, accept any fee) return error |