Skip to content

Commit dd9044b

Browse files
committed
ephemeral policy: IWYU
1 parent c6859ce commit dd9044b

File tree

2 files changed

+22
-2
lines changed

2 files changed

+22
-2
lines changed

src/policy/ephemeral_policy.cpp

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,23 @@
22
// Distributed under the MIT software license, see the accompanying
33
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
44

5+
#include <consensus/validation.h>
56
#include <policy/ephemeral_policy.h>
7+
#include <policy/feerate.h>
8+
#include <policy/packages.h>
69
#include <policy/policy.h>
10+
#include <primitives/transaction.h>
11+
#include <txmempool.h>
12+
#include <util/check.h>
13+
#include <util/hasher.h>
14+
15+
#include <algorithm>
16+
#include <cstdint>
17+
#include <map>
18+
#include <memory>
19+
#include <unordered_set>
20+
#include <utility>
21+
#include <vector>
722

823
bool PreCheckEphemeralTx(const CTransaction& tx, CFeeRate dust_relay_rate, CAmount base_fee, CAmount mod_fee, TxValidationState& state)
924
{

src/policy/ephemeral_policy.h

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,15 @@
55
#ifndef BITCOIN_POLICY_EPHEMERAL_POLICY_H
66
#define BITCOIN_POLICY_EPHEMERAL_POLICY_H
77

8+
#include <consensus/amount.h>
89
#include <policy/packages.h>
9-
#include <policy/policy.h>
1010
#include <primitives/transaction.h>
11-
#include <txmempool.h>
11+
12+
#include <optional>
13+
14+
class CFeeRate;
15+
class CTxMemPool;
16+
class TxValidationState;
1217

1318
/** These utility functions ensure that ephemeral dust is safely
1419
* created and spent without unduly risking them entering the utxo

0 commit comments

Comments
 (0)