aboutsummaryrefslogtreecommitdiff
path: root/src/policy/fees.cpp
diff options
context:
space:
mode:
authordergoegge <n.goeggi@gmail.com>2023-10-02 14:21:35 +0100
committerdergoegge <n.goeggi@gmail.com>2023-10-04 13:16:52 +0100
commitfecec3e1c661ba273470ecc5ef12d4c070b53050 (patch)
tree9b7d27beb5e856a7bf0eb16ac8f82ffe06db2982 /src/policy/fees.cpp
parent47520ed209d9341702a0fb6006bee6f63f7da42e (diff)
downloadbitcoin-fecec3e1c661ba273470ecc5ef12d4c070b53050.tar.xz
[net processing] FeeFilterRounder doesn't own a FastRandomContext
Diffstat (limited to 'src/policy/fees.cpp')
-rw-r--r--src/policy/fees.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/policy/fees.cpp b/src/policy/fees.cpp
index 553c88fddc..87bfa4cfc3 100644
--- a/src/policy/fees.cpp
+++ b/src/policy/fees.cpp
@@ -1054,8 +1054,9 @@ static std::set<double> MakeFeeSet(const CFeeRate& min_incremental_fee,
return fee_set;
}
-FeeFilterRounder::FeeFilterRounder(const CFeeRate& minIncrementalFee)
- : m_fee_set{MakeFeeSet(minIncrementalFee, MAX_FILTER_FEERATE, FEE_FILTER_SPACING)}
+FeeFilterRounder::FeeFilterRounder(const CFeeRate& minIncrementalFee, FastRandomContext& rng)
+ : m_fee_set{MakeFeeSet(minIncrementalFee, MAX_FILTER_FEERATE, FEE_FILTER_SPACING)},
+ insecure_rand{rng}
{
}