Bitcoin Core 29.99.0
P2P Digital Currency
types.h
Go to the documentation of this file.
1// Copyright (c) 2010-2021 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
12
13#ifndef BITCOIN_NODE_TYPES_H
14#define BITCOIN_NODE_TYPES_H
15
16#include <consensus/amount.h>
17#include <cstddef>
18#include <policy/policy.h>
19#include <script/script.h>
20#include <util/time.h>
21
22namespace node {
23enum class TransactionError {
24 OK,
25 MISSING_INPUTS,
32};
33
38 bool use_mempool{true};
65};
66
72 MillisecondsDouble timeout{MillisecondsDouble::max()};
73
86};
87
88} // namespace node
89
90#endif // BITCOIN_NODE_TYPES_H
static constexpr CAmount MAX_MONEY
No amount larger than this (in satoshi) is valid.
Definition: amount.h:26
int64_t CAmount
Amount in satoshis (Can be negative)
Definition: amount.h:12
Serialized script, used inside transaction inputs and outputs.
Definition: script.h:415
Definition: messages.h:20
TransactionError
Definition: types.h:23
static constexpr unsigned int DEFAULT_BLOCK_RESERVED_WEIGHT
Default for -blockreservedweight.
Definition: policy.h:25
@ OP_TRUE
Definition: script.h:84
@ OK
The message verification was successful.
size_t block_reserved_weight
The default reserved weight for the fixed-size block header, transaction count and coinbase transacti...
Definition: types.h:43
CScript coinbase_output_script
Script to put in the coinbase transaction.
Definition: types.h:64
bool use_mempool
Set false to omit mempool transactions.
Definition: types.h:38
size_t coinbase_output_max_additional_sigops
The maximum additional sigops which the pool will add in coinbase transaction outputs.
Definition: types.h:48
MillisecondsDouble timeout
How long to wait before returning nullptr instead of a new template.
Definition: types.h:72
CAmount fee_threshold
The wait method will not return a new template unless it has fees at least fee_threshold sats higher ...
Definition: types.h:85
std::chrono::duration< double, std::chrono::milliseconds::period > MillisecondsDouble
Definition: time.h:87