#17081·foundry

Key Anvil's forked log cache by Filter again after the next Alloy release

Author: mattsseCreated Sep 26, 2026Updated Sep 26, 2026
LabelsT-debtC-anvilT-blocked

Alloy 2.5.0 removed Hash from Filter (alloy-rs/alloy#4211), so #17077 keys Anvil's forked log cache (ForkedStorage::logs in crates/anvil/src/eth/backend/fork.rs) by a new LogsCacheKey built from the block option and the sorted address and topic sets.

alloy-rs/alloy#4260 restores an order-independent Hash for FilterSet and Filter. Once an Alloy release includes it, bump Alloy, change ForkedStorage::logs back to HashMap<Filter, Vec<Log>>, and remove LogsCacheKey and sorted_filter_set.

Blocked on the next Alloy release after 2.5.0.