Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions crates/primitives/src/bits/bloom.rs
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,13 @@ impl Bloom {
self.accrue_raw_log(log.address, log.topics())
}

/// Ingests multiple logs into the bloom filter.
pub fn accrue_logs(&mut self, logs: &[Log]) {
for log in logs {
self.accrue_log(log)
}
}

/// True if the bloom filter contains a log with given address and topics.
///
/// Note: This method may return false positives. This is inherent to the
Expand Down
Loading