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: adds arbitratry to BlobTransaction and KZG_TRUSTED_SETUP #4116

Merged
merged 9 commits into from
Aug 9, 2023

Conversation

joshieDo
Copy link
Collaborator

@joshieDo joshieDo commented Aug 8, 2023

depends on #4102 (created the PR pointing there for easier diff view)

  • Adds arbitrary and rlp proptest tests to BlobTransaction
  • Adds a lazy static KZG_TRUSTED_SETUP. Wdyt

@joshieDo joshieDo added A-networking Related to networking in general M-eip This change relates to the implementation of an EIP E-cancun Related to the Cancun network upgrade labels Aug 8, 2023
type Parameters = ParamsFor<String>;
fn arbitrary_with(_args: Self::Parameters) -> Self::Strategy {
(
proptest_vec(proptest_vec(proptest_any::<u8>(), BYTES_PER_BLOB), 1..=5),
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

using proptest_any::<[u8; BYTES_PER_BLOB]>() instead of proptest_vec(proptest_any::<u8>(), BYTES_PER_BLOB) causes proptest to hit:

thread 'types::transactions::BlobTransactionTests::proptest' has overflowed its stack

Copy link
Member

Choose a reason for hiding this comment

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

interesting, BYTES_PER_BLOB is pretty large, so i wonder if that's partially why

@codecov
Copy link

codecov bot commented Aug 8, 2023

Codecov Report

Merging #4116 (e06cd6a) into main (6c90ec5) will increase coverage by 0.03%.
The diff coverage is 100.00%.

Impacted file tree graph

Files Changed Coverage Δ
crates/net/eth-wire/src/types/transactions.rs 97.08% <100.00%> (+0.58%) ⬆️
crates/primitives/src/constants/eip4844.rs 100.00% <100.00%> (ø)

... and 11 files with indirect coverage changes

Flag Coverage Δ
integration-tests 16.90% <0.00%> (-0.02%) ⬇️
unit-tests 63.98% <100.00%> (+0.04%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
reth binary 25.38% <ø> (ø)
blockchain tree 83.04% <ø> (ø)
pipeline 90.07% <ø> (ø)
storage (db) 74.63% <ø> (ø)
trie 94.71% <ø> (+0.04%) ⬆️
txpool 48.16% <ø> (+0.57%) ⬆️
networking 77.39% <100.00%> (-0.11%) ⬇️
rpc 58.70% <ø> (ø)
consensus 63.76% <ø> (ø)
revm 32.26% <ø> (ø)
payload builder 6.57% <ø> (ø)
primitives 87.97% <100.00%> (+0.15%) ⬆️

Copy link
Member

@Rjected Rjected left a comment

Choose a reason for hiding this comment

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

this looks good to me, I like the lazy trusted setup

Base automatically changed from dan/add-blob-transaction to main August 9, 2023 12:15
@mattsse mattsse enabled auto-merge August 9, 2023 12:18
@mattsse mattsse added this pull request to the merge queue Aug 9, 2023
Merged via the queue into main with commit 31d1288 Aug 9, 2023
25 checks passed
@mattsse mattsse deleted the joshie/blob-arbitrary branch August 9, 2023 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-networking Related to networking in general E-cancun Related to the Cancun network upgrade M-eip This change relates to the implementation of an EIP
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants