Bitcoin ABC  0.22.13
P2P Digital Currency
transaction.h
Go to the documentation of this file.
1 // Copyright (c) 2017-2019 The Bitcoin Core developers
2 // Distributed under the MIT software license, see the accompanying
3 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
4 
5 #ifndef BITCOIN_NODE_TRANSACTION_H
6 #define BITCOIN_NODE_TRANSACTION_H
7 
8 #include <attributes.h>
9 #include <feerate.h>
10 #include <primitives/transaction.h>
11 #include <util/error.h>
12 
13 class Config;
14 struct NodeContext;
15 struct TxId;
16 
25 
48  NodeContext &node, const Config &config, CTransactionRef tx,
49  std::string &err_string, Amount max_tx_fee, bool relay, bool wait_callback);
50 
51 #endif // BITCOIN_NODE_TRANSACTION_H
std::shared_ptr< const CTransaction > CTransactionRef
Definition: transaction.h:338
Definition: amount.h:17
Definition: config.h:19
NodeContext struct containing references to chain state and connection state.
Definition: context.h:35
static constexpr Amount COIN
Definition: amount.h:153
#define NODISCARD
Definition: attributes.h:18
static const CFeeRate DEFAULT_MAX_RAW_TX_FEE_RATE
Maximum fee rate for sendrawtransaction and testmempoolaccept RPC calls.
Definition: transaction.h:24
A TxId is the identifier of a transaction.
Definition: txid.h:14
TransactionError
Definition: error.h:22
Fee rate in satoshis per kilobyte: Amount / kB.
Definition: feerate.h:21
NODISCARD TransactionError BroadcastTransaction(NodeContext &node, const Config &config, CTransactionRef tx, std::string &err_string, Amount max_tx_fee, bool relay, bool wait_callback)
Submit a transaction to the mempool and (optionally) relay it to all P2P peers.
Definition: transaction.cpp:20