Skip to content

Commit

Permalink
Fix duplicate commitments in GetPayloadV3 response (#8018)
Browse files Browse the repository at this point in the history
  • Loading branch information
somnathb1 authored Aug 14, 2023
1 parent 143ff46 commit 1867d93
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions turbo/execution/eth1/block_building.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,13 +181,19 @@ func (e *EthereumExecutionModule) GetAssembledBlock(ctx context.Context, req *ex
"versioned hashes (%d)", i, block.Hash(), len(commitments), len(proofs), len(blobs), lenCheck)
}
for _, commitment := range commitments {
blobsBundle.Commitments = append(blobsBundle.Commitments, commitment[:])
c := types.KZGCommitment{}
copy(c[:], commitment[:])
blobsBundle.Commitments = append(blobsBundle.Commitments, c[:])
}
for _, proof := range proofs {
blobsBundle.Proofs = append(blobsBundle.Proofs, proof[:])
p := types.KZGProof{}
copy(p[:], proof[:])
blobsBundle.Proofs = append(blobsBundle.Proofs, p[:])
}
for _, blob := range blobs {
blobsBundle.Blobs = append(blobsBundle.Blobs, blob[:])
b := types.Blob{}
copy(b[:], blob[:])
blobsBundle.Blobs = append(blobsBundle.Blobs, b[:])
}
}

Expand Down

0 comments on commit 1867d93

Please sign in to comment.