mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: move receipts pruning to provider (#13886)
This commit is contained in:
@ -874,8 +874,10 @@ mod tests {
|
||||
// If there is a pruning configuration, then it's forced to use the database.
|
||||
// This way we test both cases.
|
||||
let modes = [None, Some(PruneModes::none())];
|
||||
let random_filter =
|
||||
ReceiptsLogPruneConfig(BTreeMap::from([(Address::random(), PruneMode::Full)]));
|
||||
let random_filter = ReceiptsLogPruneConfig(BTreeMap::from([(
|
||||
Address::random(),
|
||||
PruneMode::Distance(100000),
|
||||
)]));
|
||||
|
||||
// Tests node with database and node with static files
|
||||
for mut mode in modes {
|
||||
@ -1011,8 +1013,10 @@ mod tests {
|
||||
// If there is a pruning configuration, then it's forced to use the database.
|
||||
// This way we test both cases.
|
||||
let modes = [None, Some(PruneModes::none())];
|
||||
let random_filter =
|
||||
ReceiptsLogPruneConfig(BTreeMap::from([(Address::random(), PruneMode::Full)]));
|
||||
let random_filter = ReceiptsLogPruneConfig(BTreeMap::from([(
|
||||
Address::random(),
|
||||
PruneMode::Before(100000),
|
||||
)]));
|
||||
|
||||
// Tests node with database and node with static files
|
||||
for mut mode in modes {
|
||||
|
||||
Reference in New Issue
Block a user