Bitcoin ABC
0.30.7
P2P Digital Currency
src
txorphanage.h
Go to the documentation of this file.
1
// Copyright (c) 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
5
#ifndef BITCOIN_TXORPHANAGE_H
6
#define BITCOIN_TXORPHANAGE_H
7
8
#include <
txpool.h
>
9
#include <
util/time.h
>
10
12
static
constexpr
auto
ORPHAN_TX_EXPIRE_TIME
{20min};
14
static
constexpr
auto
ORPHAN_TX_EXPIRE_INTERVAL
{5min};
15
16
class
TxOrphanage
:
public
TxPool
{
17
public
:
18
TxOrphanage
()
19
:
TxPool
(
"orphan"
,
ORPHAN_TX_EXPIRE_TIME
,
ORPHAN_TX_EXPIRE_INTERVAL
) {}
20
};
21
22
#endif
// BITCOIN_TXORPHANAGE_H
TxOrphanage
Definition:
txorphanage.h:16
TxOrphanage::TxOrphanage
TxOrphanage()
Definition:
txorphanage.h:18
TxPool
A class to store and track transactions by peers.
Definition:
txpool.h:24
time.h
ORPHAN_TX_EXPIRE_TIME
static constexpr auto ORPHAN_TX_EXPIRE_TIME
Expiration time for orphan transactions.
Definition:
txorphanage.h:12
ORPHAN_TX_EXPIRE_INTERVAL
static constexpr auto ORPHAN_TX_EXPIRE_INTERVAL
Minimum time between orphan transactions expire time checks.
Definition:
txorphanage.h:14
txpool.h
Generated on Sat Dec 21 2024 14:46:07 for Bitcoin ABC by
1.9.4