-
Notifications
You must be signed in to change notification settings - Fork 21.9k
Engine getblobs v2 metrics #31834
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
Closed
SunnysidedJ
wants to merge
58
commits into
ethereum:peerdas-devnet-7
from
SunnysidedJ:engine-getblobs-v2-metrics
Closed
Engine getblobs v2 metrics #31834
Changes from all commits
Commits
Show all changes
58 commits
Select commit
Hold shift + click to select a range
076d00e
eth/catalyst: allow cancun payloads
MariusVanDerWijden d9848ea
eth/catalyst: implement getBlobsV2
MariusVanDerWijden 3691f57
crypto: move from go-kzg-4844 to go-eth-kzg
MariusVanDerWijden aee852c
eth/catalyst: implement getBlobsV2
MariusVanDerWijden d05a127
beacon/engine: correct casing for cellProofs
MariusVanDerWijden 8b7e1f0
core/types: compute cellproofs on transaction submission
MariusVanDerWijden 41b0321
beacon/engine: don't compute cell proofs in miner
MariusVanDerWijden d422284
beacon/engine: rename cellProof
MariusVanDerWijden f5d35da
go.mod: tidy
MariusVanDerWijden ed9324b
beacon/engine: fix cell proof logic
MariusVanDerWijden 1c62566
beacon/engine: fix cell proof logic
MariusVanDerWijden 50b85d7
core/txpool: properly implement blobsv2 support
MariusVanDerWijden dd9bef2
miner: skip v1 transactions post-prague
MariusVanDerWijden c1eebc2
miner: skip v1 transactions post-prague
MariusVanDerWijden efb7b58
eth/catalyst: don't panic
MariusVanDerWijden 6349f6a
miner: happy lint
MariusVanDerWijden 3ef5385
core/types: fix rlp decoding
MariusVanDerWijden 284b63d
eth/catalyst: don't panic
MariusVanDerWijden 0a6e0a1
miner: compute cell proofs on demand
MariusVanDerWijden fb73b24
core/txpool: fix mining bug
MariusVanDerWijden 5466600
core/txpool: better log
MariusVanDerWijden af6c674
eth/catalyst: no getblobsv2 error
MariusVanDerWijden 80e92e5
Rename response field of GetBlobsV2 to
mininny 479997f
crypto/kzg4844: fix rebase
MariusVanDerWijden 4df1098
eth/catalyst: rework error message
MariusVanDerWijden 9defed8
eth/catalyst: allow cancun payloads
MariusVanDerWijden f4e5e73
eth/catalyst: implement getBlobsV2
MariusVanDerWijden b3ff7b0
crypto: move from go-kzg-4844 to go-eth-kzg
MariusVanDerWijden 15c7cad
eth/catalyst: implement getBlobsV2
MariusVanDerWijden 125dd1b
beacon/engine: correct casing for cellProofs
MariusVanDerWijden bbe4a40
core/types: compute cellproofs on transaction submission
MariusVanDerWijden 9f4b59d
beacon/engine: don't compute cell proofs in miner
MariusVanDerWijden a64e632
beacon/engine: rename cellProof
MariusVanDerWijden 193973d
go.mod: tidy
MariusVanDerWijden d2c1ba0
beacon/engine: fix cell proof logic
MariusVanDerWijden 7f8da10
beacon/engine: fix cell proof logic
MariusVanDerWijden 66a585c
core/txpool: properly implement blobsv2 support
MariusVanDerWijden 6b5bfbe
miner: skip v1 transactions post-prague
MariusVanDerWijden e00e15a
miner: skip v1 transactions post-prague
MariusVanDerWijden fdadde2
eth/catalyst: don't panic
MariusVanDerWijden d3c184d
miner: happy lint
MariusVanDerWijden f31ad09
core/types: fix rlp decoding
MariusVanDerWijden f98287a
eth/catalyst: don't panic
MariusVanDerWijden f2030ac
miner: compute cell proofs on demand
MariusVanDerWijden 39cea94
core/txpool: fix mining bug
MariusVanDerWijden 180b6e0
core/txpool: better log
MariusVanDerWijden 5091472
eth/catalyst: no getblobsv2 error
MariusVanDerWijden d65e54c
Rename response field of GetBlobsV2 to
mininny 0fc4112
crypto/kzg4844: fix rebase
MariusVanDerWijden 10e76e8
eth/catalyst: rework error message
MariusVanDerWijden f203dfc
eth/catalyst: allow duplicate blob hashes (#31788)
dguenther ff6e518
crypto/kzg4844: verify cell proofs (#31815)
MariusVanDerWijden 81daff4
Add metrics for getBlobsV2
mininny 7ad169f
Remove HasBlobs and use GetBlobCounts
mininny e10a180
Add unified metrics for GetBlobsV2
SunnysidedJ 6be2ff9
fixed typo
SunnysidedJ 3b8caf1
Merge branch 'peerdas-devnet-7' into engine-getblobs-v2-metrics
SunnysidedJ d3ce3db
fixed spacing
SunnysidedJ File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,56 @@ | ||
| // Copyright 2025 The go-ethereum Authors | ||
| // This file is part of the go-ethereum library. | ||
| // | ||
| // The go-ethereum library is free software: you can redistribute it and/or modify | ||
| // it under the terms of the GNU Lesser General Public License as published by | ||
| // the Free Software Foundation, either version 3 of the License, or | ||
| // (at your option) any later version. | ||
| // | ||
| // The go-ethereum library is distributed in the hope that it will be useful, | ||
| // but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| // GNU Lesser General Public License for more details. | ||
| // | ||
| // You should have received a copy of the GNU Lesser General Public License | ||
| // along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>. | ||
|
|
||
| package engine | ||
|
|
||
| import ( | ||
| "testing" | ||
|
|
||
| "github.com/ethereum/go-ethereum/common" | ||
| "github.com/ethereum/go-ethereum/core/types" | ||
| "github.com/ethereum/go-ethereum/crypto/kzg4844" | ||
| ) | ||
|
|
||
| func TestBlobs(t *testing.T) { | ||
| var ( | ||
| emptyBlob = new(kzg4844.Blob) | ||
| emptyBlobCommit, _ = kzg4844.BlobToCommitment(emptyBlob) | ||
| emptyBlobProof, _ = kzg4844.ComputeBlobProof(emptyBlob, emptyBlobCommit) | ||
| emptyCellProof, _ = kzg4844.ComputeCells(emptyBlob) | ||
| ) | ||
| header := types.Header{} | ||
| block := types.NewBlock(&header, &types.Body{}, nil, nil) | ||
|
|
||
| sidecarWithoutCellProofs := &types.BlobTxSidecar{ | ||
| Blobs: []kzg4844.Blob{*emptyBlob}, | ||
| Commitments: []kzg4844.Commitment{emptyBlobCommit}, | ||
| Proofs: []kzg4844.Proof{emptyBlobProof}, | ||
| } | ||
| env := BlockToExecutableData(block, common.Big0, []*types.BlobTxSidecar{sidecarWithoutCellProofs}, nil) | ||
| if len(env.BlobsBundle.Proofs) != 1 { | ||
| t.Fatalf("Expect 1 proof in blobs bundle, got %v", len(env.BlobsBundle.Proofs)) | ||
| } | ||
|
|
||
| sidecarWithCellProofs := &types.BlobTxSidecar{ | ||
| Blobs: []kzg4844.Blob{*emptyBlob}, | ||
| Commitments: []kzg4844.Commitment{emptyBlobCommit}, | ||
| Proofs: emptyCellProof, | ||
| } | ||
| env = BlockToExecutableData(block, common.Big0, []*types.BlobTxSidecar{sidecarWithCellProofs}, nil) | ||
| if len(env.BlobsBundle.Proofs) != 128 { | ||
| t.Fatalf("Expect 128 proofs in blobs bundle, got %v", len(env.BlobsBundle.Proofs)) | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.