Conversation
Performance Report✔️ no performance regression detected Full benchmark results
|
| // Capella and later forks have withdrawals on their ExecutionPayload | ||
| if (fork === ForkName.capella || fork === ForkName.eip4844) { | ||
| // TODO EIP-4844 Remove this when the EC includes `withdrawals` | ||
| (blockBody as capella.BeaconBlockBody).executionPayload.withdrawals = []; |
There was a problem hiding this comment.
this will break the withdrawals, so we should do this only in an unmerged PR
There was a problem hiding this comment.
removing from here, so that we can only keep this in the unmerged eip-4844 parent PR
There was a problem hiding this comment.
Sure, we should merge withdrawal logic here ASAP. Is it there already on unstable or no-where yet?
There was a problem hiding this comment.
merge withdrawal logic is already in the executin/http where withdrawals are bundeled on execution payload depending on fork
There was a problem hiding this comment.
we set withdrawal to attributes here: https://github.com/ChainSafe/lodestar/pull/4864/files#diff-c331f7b8e7121839c55f5f20f21d1efe1375b69c6fbbe5db12a4baf1ed4acf5dR350, and rest execution apis handle it appropriately
86b4b94 to
95739bd
Compare
| */ | ||
| getBlobsSidecar(beaconBlock: eip4844.BeaconBlock): eip4844.BlobsSidecar { | ||
| const blockHash = toHex(beaconBlock.body.executionPayload.blockHash); | ||
| const blobsSidecar = this.producedBlobsSidecarCache.get(blockHash); |
There was a problem hiding this comment.
seems here we get from beacon block hash while we cache by payload block hash
There was a problem hiding this comment.
const blockHash = toHex(beaconBlock.body.executionPayload.blockHash); is payload blockHash
| const blobsBundle = await this.executionEngine.getBlobsBundle(payloadId); | ||
|
|
||
| // Sanity check consistency between getPayload() and getBlobsBundle() | ||
| const blockHash = toHex(payload.blockHash); |
There was a problem hiding this comment.
here we return payload block hash but seems later on we get by beacon block hash
There was a problem hiding this comment.
Get by execution payload blockHash
lodestar/packages/beacon-node/src/chain/chain.ts
Lines 424 to 425 in 95739bd
Set by execution payload blockHash
Which is computed here from the payload
Motivation
Description