Bitcoin Core
28.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
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
Definition
messages.h:20
node::TransactionError
TransactionError
Definition
types.h:19
node::TransactionError::MISSING_INPUTS
@ MISSING_INPUTS
node::TransactionError::MEMPOOL_REJECTED
@ MEMPOOL_REJECTED
node::TransactionError::MAX_FEE_EXCEEDED
@ MAX_FEE_EXCEEDED
node::TransactionError::MAX_BURN_EXCEEDED
@ MAX_BURN_EXCEEDED
node::TransactionError::MEMPOOL_ERROR
@ MEMPOOL_ERROR
node::TransactionError::ALREADY_IN_UTXO_SET
@ ALREADY_IN_UTXO_SET
node::TransactionError::INVALID_PACKAGE
@ INVALID_PACKAGE
node::TransactionError::OK
@ OK
No error.
node::BlockCreateOptions
Definition
types.h:30
node::BlockCreateOptions::use_mempool
bool use_mempool
Set false to omit mempool transactions.
Definition
types.h:34
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::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
Generated on Thu Oct 3 2024 09:20:15 for Bitcoin Core by
1.12.0