-
Notifications
You must be signed in to change notification settings - Fork 0
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
EIP-4844 #1
base: unstable
Are you sure you want to change the base?
EIP-4844 #1
Conversation
@@ -136,7 +136,7 @@ describe("LevelDB controller", () => { | |||
|
|||
function getDbSize(): number { | |||
// 116 ./.__testdb | |||
const res = execSync(`du -bs ${dbLocation}`, {encoding: "utf8"}); |
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.
-b
doesn't exist on OSX's du
df8ff46
to
4f8602d
Compare
e34a475
to
78220ef
Compare
@@ -38,7 +38,7 @@ export const phase0: Phase0Preset = { | |||
// 2**0 (= 1) slots 6 seconds | |||
MIN_ATTESTATION_INCLUSION_DELAY: 1, | |||
// [customized] fast epochs | |||
SLOTS_PER_EPOCH: 8, | |||
SLOTS_PER_EPOCH: 3, |
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.
Don't commit this. Set this way to match https://github.com/Inphi/eip4844-interop/blob/master/prysm/prysm-chain-config.yml#L6
…ine API getBlobsBundle response
…g that will be removed.
…of length 0 and 1
…lication code special-case
…lidateBlobsAndKzgCommitments during block proposing
…lace where it can be imported by other packages. Add back some of the Capella field defaulting
…ash on unexpected parameter type given to blobToKzgCommitment
a7b033b
to
013d173
Compare
@@ -27,7 +28,7 @@ export function validateBlobsAndKzgCommitments( | |||
// assert [blob_to_kzg_commitment(blob) == commitment for blob, commitment in zip(blobs, blob_kzg_commitments)] | |||
blobs.forEach((blob, index) => { | |||
const computedCommitment = blobToKzgCommitment(blob); | |||
if (computedCommitment !== blobKzgCommitments[index]) { | |||
if (!typedArraysAreEqual(computedCommitment, blobKzgCommitments[index])) { |
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.
fixed the equality check
} | ||
|
||
// message_offset = 1 + uint32.decode_bytes(opaque_tx[1:5]) | ||
const messageOffset = 1 + new DataView(opaqueTx.slice(1, 5).buffer, 0).getUint32(0, true); // Should always be 70 |
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 is true, it will always be 70. But for blobVersionedHashOffset I'm not sure if it's always gonna be 283. A blob transaction will:
- Always have a
to
address. According to the types it can beNone
- Always have empty
data
field - Always have empty
access_list
field
If the conditions above hold then it will always be 283
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.
According to Proto, all three false, https://discord.com/channels/595666850260713488/1031999860997619843/1043315559309250694
Implements EIP-4844 in Lodestar.
As specified in the consensus specs, except where we are ahead of the spec:
MIN_EPOCHS_FOR_BLOBS_SIDECARS_REQUESTS
to 18 days ethereum/consensus-specs#3047See also ethereum/consensus-specs#3043
TODO
See also