From 5cdaeb9699ec7269e2d3cd0f49224b9632eb3a9a Mon Sep 17 00:00:00 2001 From: Shane Bammel Date: Fri, 14 Jan 2022 20:29:25 -0600 Subject: [PATCH] Use sane gas cap for the getValidators system call --- consensus/parlia/parlia.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/consensus/parlia/parlia.go b/consensus/parlia/parlia.go index d2eceba1b..d0e263ba1 100644 --- a/consensus/parlia/parlia.go +++ b/consensus/parlia/parlia.go @@ -1045,7 +1045,7 @@ func (p *Parlia) getCurrentValidators(blockHash common.Hash) ([]common.Address, // call msgData := (hexutil.Bytes)(data) toAddress := common.HexToAddress(systemcontracts.ValidatorContract) - gas := (hexutil.Uint64)(uint64(math.MaxUint64 / 2)) + gas := hexutil.Uint64(50_000_000) result, err := p.ethAPI.Call(ctx, ethapi.TransactionArgs{ Gas: &gas, To: &toAddress,