Prune the hahsmap when uninstall filter id.
@@ -111,6 +111,7 @@ impl FilterDB {
/// Uninstall the filter id
pub fn uninstall(&mut self, id: usize) -> bool {
+ self.prune();
// Remove logs first. casue logs filter includes the block filter.
if self.is_logs_filter(id) {
self.logs_filter.remove(id);
