core,core/vm: remove BlobFeeCap field in TxContext that do not need anymore

This commit is contained in:
cuiweixie 2026-01-16 08:34:49 +08:00
parent 127d1f42bb
commit 4a5ce4d025
3 changed files with 1 additions and 5 deletions

View file

@ -83,9 +83,7 @@ func NewEVMTxContext(msg *Message) vm.TxContext {
GasPrice: new(big.Int).Set(msg.GasPrice),
BlobHashes: msg.BlobHashes,
}
if msg.BlobGasFeeCap != nil {
ctx.BlobFeeCap = new(big.Int).Set(msg.BlobGasFeeCap)
}
return ctx
}

View file

@ -75,7 +75,6 @@ type TxContext struct {
Origin common.Address // Provides information for ORIGIN
GasPrice *big.Int // Provides information for GASPRICE (and is used to zero the basefee if NoBaseFee is set)
BlobHashes []common.Hash // Provides information for BLOBHASH
BlobFeeCap *big.Int // Is used to zero the blobbasefee if NoBaseFee is set
AccessEvents *state.AccessEvents // Capture all state accesses for this tx
}

View file

@ -26,7 +26,6 @@ func NewEnv(cfg *Config) *vm.EVM {
Origin: cfg.Origin,
GasPrice: cfg.GasPrice,
BlobHashes: cfg.BlobHashes,
BlobFeeCap: cfg.BlobFeeCap,
}
blockContext := vm.BlockContext{
CanTransfer: core.CanTransfer,