-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Conversation
type Parameters = ParamsFor<String>; | ||
fn arbitrary_with(_args: Self::Parameters) -> Self::Strategy { | ||
( | ||
proptest_vec(proptest_vec(proptest_any::<u8>(), BYTES_PER_BLOB), 1..=5), |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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 Report
... and 11 files with indirect coverage changes
Flags with carried forward coverage won't be shown. Click here to find out more.
|
There was a problem hiding this 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
depends on #4102 (created the PR pointing there for easier diff view)
arbitrary
and rlp proptest tests toBlobTransaction
KZG_TRUSTED_SETUP
. Wdyt