-
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
remove proptest specific encoding logic #6503
Conversation
Getting compiler error
Any idea why ? |
This looks like an internal proptest macro thing, I'd start by either changing how compose is being used, check syntax with the |
I think I have to change this value for the tests to pass
|
no, that should not be changed unless it contains some of the "fake" values from the previous encoding impl. you'd have to manually check that the rlp string is correct |
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.
some questions about derive_arbitrary
impls, also looks like lints need to be fixed
crates/primitives/src/header.rs
Outdated
// Set fields based on EIP-1559 activation | ||
if header.base_fee_per_gas.is_none() { | ||
// EIP-1559 not active, clear related fields | ||
header.withdrawals_root = None; | ||
header.blob_gas_used = None; | ||
header.excess_blob_gas = None; | ||
header.parent_beacon_block_root = None; | ||
} else { | ||
// 4895 is not active | ||
if header.withdrawals_root.is_none() { | ||
header.blob_gas_used = None; | ||
header.excess_blob_gas = None; | ||
header.parent_beacon_block_root = None; | ||
} else { | ||
// 4895 is active | ||
if eip_4844_active { | ||
// EIP-4844 is active | ||
header.blob_gas_used = Some(blob_gas_used); | ||
header.excess_blob_gas = Some(excess_blob_gas); | ||
header.parent_beacon_block_root = Some(parent_beacon_block_root); | ||
} else { | ||
// EIP-4844 is not active | ||
header.blob_gas_used = None; | ||
header.excess_blob_gas = None; | ||
header.parent_beacon_block_root = None; | ||
}; |
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.
I would try to flatten this if possible
yeah this encoding turned out to be correct after I checked manually |
lololol |
hey @supernovahs any updates here? |
@Rjected Are you ok with the current way of implementing manual impls for |
@supernovahs we should not remove |
Looking |
ci issue i think |
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.
a few comments and style nits, great progress!
few nits, looks great :) |
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.
@Rjected please wrap up here
9d59e80
to
0a81006
Compare
0a81006
to
4d5dda7
Compare
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.
did a lot of cleanup, @onbjerg bump for review
Co-authored-by: Dan Cline <6798349+Rjected@users.noreply.github.com>
closes #6329