mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-26 05:27:19 +00:00
ops again
This commit is contained in:
parent
97ed051dca
commit
52e302b9ab
@ -2,6 +2,7 @@ package commands
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"math/big"
|
||||
|
||||
"github.com/holiman/uint256"
|
||||
@ -75,7 +76,11 @@ func (e *EngineImpl) ForkchoiceUpdatedV1(_ context.Context, _ struct{}, buildPay
|
||||
func (e *EngineImpl) ExecutePayloadV1(ctx context.Context, payload ExecutionPayload) (map[string]interface{}, error) {
|
||||
var baseFee *uint256.Int
|
||||
if payload.BaseFeePerGas != nil {
|
||||
baseFee, _ = uint256.FromBig((*big.Int)(payload.BaseFeePerGas))
|
||||
var overflow bool
|
||||
baseFee, overflow = uint256.FromBig((*big.Int)(payload.BaseFeePerGas))
|
||||
if overflow {
|
||||
return nil, fmt.Errorf("invalid request")
|
||||
}
|
||||
}
|
||||
// Maximum length of extra is 32 bytes so we can use the hash datatype
|
||||
extra := common.BytesToHash(payload.Extra)
|
||||
|
Loading…
Reference in New Issue
Block a user