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