@ -59,7 +59,7 @@ type ExecutionResult struct {
BaseFee * math . HexOrDecimal256 ` json:"currentBaseFee,omitempty" `
WithdrawalsRoot * common . Hash ` json:"withdrawalsRoot,omitempty" `
CurrentExcessBlobGas * math . HexOrDecimal64 ` json:"currentExcessBlobGas,omitempty" `
CurrentBlobGasUsed * math . HexOrDecimal64 ` json:"currentB lobGasUsed,omitempty" `
CurrentBlobGasUsed * math . HexOrDecimal64 ` json:"b lobGasUsed,omitempty" `
}
type ommer struct {
@ -85,7 +85,7 @@ type stEnv struct {
Withdrawals [ ] * types . Withdrawal ` json:"withdrawals,omitempty" `
BaseFee * big . Int ` json:"currentBaseFee,omitempty" `
ParentUncleHash common . Hash ` json:"parentUncleHash" `
ExcessBlobGas * uint64 ` json:"excessBlobGas,omitempty" `
ExcessBlobGas * uint64 ` json:"curr entE xcessBlobGas,omitempty" `
ParentExcessBlobGas * uint64 ` json:"parentExcessBlobGas,omitempty" `
ParentBlobGasUsed * uint64 ` json:"parentBlobGasUsed,omitempty" `
ParentBeaconBlockRoot * common . Hash ` json:"parentBeaconBlockRoot" `
@ -197,6 +197,9 @@ func (pre *Prestate) Apply(vmConfig vm.Config, chainConfig *params.ChainConfig,
rejectedTxs = append ( rejectedTxs , & rejectedTx { i , errMsg } )
continue
}
if tx . Type ( ) == types . BlobTxType {
blobGasUsed += uint64 ( params . BlobTxBlobGasPerBlob * len ( tx . BlobHashes ( ) ) )
}
msg , err := core . TransactionToMessage ( tx , signer , pre . Env . BaseFee )
if err != nil {
log . Warn ( "rejected tx" , "index" , i , "hash" , tx . Hash ( ) , "error" , err )
@ -226,9 +229,6 @@ func (pre *Prestate) Apply(vmConfig vm.Config, chainConfig *params.ChainConfig,
gaspool . SetGas ( prevGas )
continue
}
if tx . Type ( ) == types . BlobTxType {
blobGasUsed += params . BlobTxBlobGasPerBlob
}
includedTxs = append ( includedTxs , tx )
if hashError != nil {
return nil , nil , NewError ( ErrorMissingBlockhash , hashError )