Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(consensus): Upstream Receipt Constructor #165

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

refcell
Copy link
Collaborator

@refcell refcell commented Oct 8, 2024

Description

Small PR to upstream a receipt constructor from kona.

@refcell refcell self-assigned this Oct 8, 2024
Comment on lines +48 to +58
/// Compute the logs bloom filter for the given logs.
pub(crate) fn logs_bloom<'a>(logs: impl IntoIterator<Item = &'a Log>) -> Bloom {
let mut bloom = Bloom::ZERO;
for log in logs {
bloom.m3_2048(log.address.as_slice());
for topic in log.topics() {
bloom.m3_2048(topic.as_slice());
}
}
bloom
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should actually just move this to alloy-primitives

fine here for now

@mattsse
Copy link
Member

mattsse commented Oct 18, 2024

fyi this fn should now be on latest alloy-primitives

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants