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

feat(providers): add AtomicBlockchainProvider #11705

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

Conversation

joshieDo
Copy link
Collaborator

@joshieDo joshieDo commented Oct 14, 2024

  • adds AtomicBlockchainProvider, which ensures a single view on memory + db in most cases
  • BlockchainProvider2 trait impls all create and use AtomicBlockchainProvider

hive https://github.com/paradigmxyz/reth/actions/runs/11404477525

closes #11497

image

rest of stack: #11706 #11778 #11841

@joshieDo joshieDo added C-enhancement New feature or request A-db Related to the database A-blockchain-tree Related to sidechains, reorgs and pending blocks labels Oct 14, 2024
@joshieDo joshieDo requested a review from mattsse October 14, 2024 06:26
}

#[cfg(test)]
mod tests {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

copy pasted the tests and have them using the factory instead

@joshieDo joshieDo force-pushed the joshie/bpf branch 3 times, most recently from 44c05b9 to 3dcc92b Compare October 15, 2024 13:05
@joshieDo joshieDo marked this pull request as ready for review October 15, 2024 13:33
@joshieDo joshieDo marked this pull request as draft October 15, 2024 13:36
@joshieDo joshieDo force-pushed the joshie/bpf branch 8 times, most recently from 1a84b0a to 7579763 Compare October 17, 2024 01:55
@joshieDo joshieDo marked this pull request as ready for review October 17, 2024 01:59
@joshieDo joshieDo changed the title feat(providers): add BlockchainProviderFactory feat(providers): add AtomicBlockchainProvider Oct 18, 2024
rm import
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-blockchain-tree Related to sidechains, reorgs and pending blocks A-db Related to the database C-enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add helper for consistent db and in-memory state access
1 participant