Skip to content

Commit 619c609

Browse files
committed
Fix excess_data_gas field in Execution Payload
1 parent a7f7378 commit 619c609

File tree

5 files changed

+13
-7
lines changed

5 files changed

+13
-7
lines changed

cmd/evm/internal/t8ntool/transaction.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,9 @@ func Transaction(ctx *cli.Context) error {
138138
} else {
139139
r.Address = sender
140140
}
141-
// Check intrinsic gas assuming no excess blobs
142-
// NOTE: We set excess_blobs prestate to zero. So this may not accurately compute the
143-
// intrinsic gas unless the tool is updated to take in an excess_blobs parameter.
141+
// Check intrinsic gas assuming no excess data gas
142+
// NOTE: We set excess_data_gas prestate to zero. So this may not accurately compute the
143+
// intrinsic gas unless the tool is updated to take in an excess_data_gas parameter.
144144

145145
rules := core.IntrinsicGasChainRules{
146146
Homestead: chainConfig.IsHomestead(new(big.Int)),

core/beacon/gen_ed.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

core/beacon/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ type ExecutableDataV1 struct {
6969
Transactions [][]byte `json:"transactions" gencodec:"required"`
7070

7171
// New in EIP-4844
72-
ExcessDataGas *big.Int `json:"excessBlobs" gencodec:"optional"`
72+
ExcessDataGas *big.Int `json:"excessDataGas" gencodec:"optional"`
7373
}
7474

7575
// JSON type overrides for executableData.

core/chain_makers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ func (b *BlockGen) SetDifficulty(diff *big.Int) {
7878
b.header.Difficulty = diff
7979
}
8080

81-
// SetExcessDataGas sets the excess_blobs field of the generated block.
81+
// SetExcessDataGas sets the excess_data_gas field of the generated block.
8282
func (b *BlockGen) SetExcessDataGas(excessDataGas *big.Int) {
8383
b.header.SetExcessDataGas(excessDataGas)
8484
}

tests/gen_sttransaction.go

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)