[net processing] FeeFilterRounder doesn't own a FastRandomContext

This commit is contained in:
dergoegge
2023-10-02 14:21:35 +01:00
parent 47520ed209
commit fecec3e1c6
5 changed files with 10 additions and 7 deletions

View File

@@ -13,7 +13,8 @@ BOOST_AUTO_TEST_SUITE(policy_fee_tests)
BOOST_AUTO_TEST_CASE(FeeRounder)
{
FeeFilterRounder fee_rounder{CFeeRate{1000}};
FastRandomContext rng{/*fDeterministic=*/true};
FeeFilterRounder fee_rounder{CFeeRate{1000}, rng};
// check that 1000 rounds to 974 or 1071
std::set<CAmount> results;