Bitcoin Core
32.99.0
P2P Digital Currency
Loading...
Searching...
No Matches
src
node
types.h
Go to the documentation of this file.
1
// Copyright (c) 2010-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
12
13
#ifndef BITCOIN_NODE_TYPES_H
14
#define BITCOIN_NODE_TYPES_H
15
16
#include <cstdint>
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_FEE_RATE_EXCEEDED
,
27
MAX_BURN_EXCEEDED
,
28
INVALID_PACKAGE
,
29
PRIVATE_BROADCAST_FULL
,
30
};
31
36
enum class
TxBroadcast
:
uint8_t
{
38
MEMPOOL_AND_BROADCAST_TO_ALL
,
40
MEMPOOL_NO_BROADCAST
,
43
NO_MEMPOOL_PRIVATE_BROADCAST
,
44
};
45
46
}
// namespace node
47
48
#endif
// BITCOIN_NODE_TYPES_H
node
Definition
messages.h:21
node::TxBroadcast
TxBroadcast
How to broadcast a local transaction.
Definition
types.h:36
node::TxBroadcast::MEMPOOL_AND_BROADCAST_TO_ALL
@ MEMPOOL_AND_BROADCAST_TO_ALL
Add the transaction to the mempool and broadcast to all peers for which tx relay is enabled.
node::TxBroadcast::MEMPOOL_NO_BROADCAST
@ MEMPOOL_NO_BROADCAST
Add the transaction to the mempool, but don't broadcast to anybody.
node::TxBroadcast::NO_MEMPOOL_PRIVATE_BROADCAST
@ NO_MEMPOOL_PRIVATE_BROADCAST
Omit the mempool and directly send the transaction via a few dedicated connections to peers on privac...
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::MAX_FEE_RATE_EXCEEDED
@ MAX_FEE_RATE_EXCEEDED
node::TransactionError::ALREADY_IN_UTXO_SET
@ ALREADY_IN_UTXO_SET
node::TransactionError::PRIVATE_BROADCAST_FULL
@ PRIVATE_BROADCAST_FULL
node::TransactionError::INVALID_PACKAGE
@ INVALID_PACKAGE
node::TransactionError::OK
@ OK
No error.
Ticks
constexpr auto Ticks(Dur2 d)
Helper to count the seconds of a duration/time_point.
Definition
time.h:82
Generated on Sun Nov 1 2026 20:00:25 for Bitcoin Core by
1.9.8