Use sane gas cap for the getValidators system call

This commit is contained in:
Shane Bammel 2022-01-14 20:29:25 -06:00
parent 64bdf24bd0
commit 5cdaeb9699

View File

@ -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,