Bitcoin ABC 0.34.5
P2P Digital Currency
Loading...
Searching...
No Matches
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
12static constexpr auto ORPHAN_TX_EXPIRE_TIME{20min};
14static constexpr auto ORPHAN_TX_EXPIRE_INTERVAL{5min};
15
16class TxOrphanage : public TxPool {
17public:
20
21 std::vector<PoolTx> GetOrphanTransactions() const {
22 return GetPoolTransactions();
23 }
24};
25
26#endif // BITCOIN_TXORPHANAGE_H
std::vector< PoolTx > GetOrphanTransactions() const
Definition txorphanage.h:21
A class to store and track transactions by peers.
Definition txpool.h:24
std::vector< PoolTx > GetPoolTransactions() const
Definition txpool.cpp:342
static constexpr auto ORPHAN_TX_EXPIRE_TIME
Expiration time for orphan transactions.
Definition txorphanage.h:12
static constexpr auto ORPHAN_TX_EXPIRE_INTERVAL
Minimum time between orphan transactions expire time checks.
Definition txorphanage.h:14