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 <uint256.h>
21#include <util/time.h>
22
23namespace node {
24enum class TransactionError {
25 OK,
26 MISSING_INPUTS,
33};
34
39 bool use_mempool{true};
66};
67
73 MillisecondsDouble timeout{MillisecondsDouble::max()};
74
87};
88
94
98 bool check_pow{true};
99};
100} // namespace node
101
102#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:24
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.
bool check_pow
Set false to omit the proof-of-work check.
Definition: types.h:98
bool check_merkle_root
Set false to omit the merkle root check.
Definition: types.h:93
size_t block_reserved_weight
The default reserved weight for the fixed-size block header, transaction count and coinbase transacti...
Definition: types.h:44
CScript coinbase_output_script
Script to put in the coinbase transaction.
Definition: types.h:65
bool use_mempool
Set false to omit mempool transactions.
Definition: types.h:39
size_t coinbase_output_max_additional_sigops
The maximum additional sigops which the pool will add in coinbase transaction outputs.
Definition: types.h:49
MillisecondsDouble timeout
How long to wait before returning nullptr instead of a new template.
Definition: types.h:73
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:86
std::chrono::duration< double, std::chrono::milliseconds::period > MillisecondsDouble
Definition: time.h:88