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

Reth v1.1.1 #255

Merged
merged 46 commits into from
Nov 28, 2024
Merged

Reth v1.1.1 #255

merged 46 commits into from
Nov 28, 2024

Conversation

ZanCorDX
Copy link
Contributor

📝 Summary

  • Dependency hell.
  • In lots of generics (eg:ProviderFactory) the need of DB+Spec was replaced for NodeTypesWithDB.
  • DatabaseProviderFactory DB now is asociated type and have 2 more. In lots of places now we need Provider: BlockReader.
  • Lots of types moved to alloy_primitives.
  • encode/decode_enveloped now are XXX_2718 with minimal changes.
  • New alloy TrieNode::EmptyRoot .
  • CachedReads moved to reth::revm::cached.
  • AsyncStateRoot replaced by ParallelStateRoot (chore(trie): replace ParallelStateRoot with AsyncStateRoot paradigmxyz/reth#11213).
  • Some HashMap/Set changed to custom versions (eg: alloy_primitives::map::HashMap).
  • TransactionPool needs stronger restrictions on Transaction.
  • Updated block finalization (pectra).
  • Pectra relay submition.

💡 Motivation and Context

  • We needed this for Pectra and to be up to date with reth.
  • My life was going so well that I needed something to balance it so I did this boring PR.

✅ I have completed the following steps:

  • Run make lint
  • Run make test
  • Added tests (if applicable)

Copy link
Contributor

@liamaharon liamaharon left a comment

Choose a reason for hiding this comment

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

LGTM after comments if we're happy with its staging performance.

Comment on lines +109 to +110
// @Pending: Eval replacing Bytes for ArrayVec to avoid the copy or dig deeper into low-level.
children[index as usize] = Some(Bytes::copy_from_slice(rlp_data.as_ref()));
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we bench it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is for @dvush

Comment on lines -152 to +160
.map(|tx| tx.envelope_encoded().to_vec().into())
.map(|tx| {
let mut buf = Vec::new();
tx.encode_2718(&mut buf);
buf.into()
})
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we have a way to ensure the new encoding is correct?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not that I remember. We trust on reth tests.

tx.tx.tx.value()
tx.tx.value()
Copy link
Contributor

Choose a reason for hiding this comment

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

😁

crates/transaction-pool-bundle-ext/Cargo.toml Outdated Show resolved Hide resolved
@ZanCorDX ZanCorDX merged commit 4d273c9 into develop Nov 28, 2024
5 checks passed
@ZanCorDX ZanCorDX deleted the reth-v1.1.1 branch November 28, 2024 21:05
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.

3 participants