Bitcoin
|
#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) |
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 |