Bitcoin Core 32.99.0
P2P Digital Currency
Loading...
Searching...
No Matches
transaction.h
Go to the documentation of this file.
1// Copyright (c) 2017-present 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 <common/messages.h>
9#include <node/types.h>
10#include <policy/feerate.h>
12
13class CBlockIndex;
14class CTxMemPool;
15namespace Consensus {
16struct Params;
17}
18
19namespace node {
20class BlockManager;
21struct NodeContext;
22
29
34inline constexpr CAmount DEFAULT_MAX_BURN_AMOUNT{0};
35
56 std::string& err_string,
57 const CAmount& max_tx_fee,
60 bool wait_callback);
61
75CTransactionRef GetTransaction(const CBlockIndex* block_index, const CTxMemPool* mempool, const Txid& hash, const BlockManager& blockman, uint256& hashBlock);
76} // namespace node
77
78#endif // BITCOIN_NODE_TRANSACTION_H
int64_t CAmount
Amount in satoshis (Can be negative)
Definition amount.h:12
constexpr CAmount COIN
The amount of satoshis in one BTC.
Definition amount.h:15
const CChainParams & Params()
Return the currently selected parameters.
The block chain is a tree shaped structure starting with the genesis block at the root,...
Definition chain.h:94
Fee rate in satoshis per virtualbyte: CAmount / vB the feerate is represented internally as FeeFrac.
Definition feerate.h:32
CTxMemPool stores valid-according-to-the-current-best-chain transactions that may be included in the ...
Definition txmempool.h:188
256-bit opaque blob.
Definition uint256.h:196
Home for simple string functions returning descriptive messages.
Transaction validation functions.
TransactionError BroadcastTransaction(NodeContext &node, const CTransactionRef tx, std::string &err_string, const CAmount &max_tx_fee, const CFeeRate &max_tx_fee_rate, TxBroadcast broadcast_method, bool wait_callback)
Submit a transaction to the mempool and (optionally) relay it to all P2P peers.
TxBroadcast
How to broadcast a local transaction.
Definition types.h:38
TransactionError
Definition types.h:21
constexpr CFeeRate DEFAULT_MAX_RAW_TX_FEE_RATE
Maximum fee rate for sendrawtransaction and testmempoolaccept RPC calls.
Definition transaction.h:28
constexpr CAmount DEFAULT_MAX_BURN_AMOUNT
Maximum burn value for sendrawtransaction, submitpackage, and testmempoolaccept RPC calls.
Definition transaction.h:34
Home for public enum and struct type definitions.
std::shared_ptr< const CTransaction > CTransactionRef
constexpr auto Ticks(Dur2 d)
Helper to count the seconds of a duration/time_point.
Definition time.h:82