Bitcoin Core
28.1.0
P2P Digital Currency
src
node
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 <cstddef>
17
18
namespace
node
{
19
enum class
TransactionError
{
20
OK
,
21
MISSING_INPUTS
,
22
ALREADY_IN_UTXO_SET
,
23
MEMPOOL_REJECTED
,
24
MEMPOOL_ERROR
,
25
MAX_FEE_EXCEEDED
,
26
MAX_BURN_EXCEEDED
,
27
INVALID_PACKAGE
,
28
};
29
30
struct
BlockCreateOptions
{
34
bool
use_mempool
{
true
};
40
size_t
coinbase_max_additional_weight
{4000};
45
size_t
coinbase_output_max_additional_sigops
{400};
46
};
47
}
// namespace node
48
49
#endif // BITCOIN_NODE_TYPES_H
node::TransactionError
TransactionError
Definition:
types.h:19
node::TransactionError::MAX_BURN_EXCEEDED
node::BlockCreateOptions::coinbase_output_max_additional_sigops
size_t coinbase_output_max_additional_sigops
The maximum additional sigops which the pool will add in coinbase transaction outputs.
Definition:
types.h:45
node::TransactionError::ALREADY_IN_UTXO_SET
node::TransactionError::MAX_FEE_EXCEEDED
node::TransactionError::OK
No error.
node::BlockCreateOptions::coinbase_max_additional_weight
size_t coinbase_max_additional_weight
The maximum additional weight which the pool will add to the coinbase scriptSig, witness and outputs...
Definition:
types.h:40
node::TransactionError::INVALID_PACKAGE
node
Definition:
messages.h:20
node::TransactionError::MEMPOOL_REJECTED
node::TransactionError::MISSING_INPUTS
node::BlockCreateOptions::use_mempool
bool use_mempool
Set false to omit mempool transactions.
Definition:
types.h:34
node::TransactionError::MEMPOOL_ERROR
node::BlockCreateOptions
Definition:
types.h:30
Generated on Tue Jan 7 2025 12:00:00 for Bitcoin Core by
1.8.14