mirror of
https://gitlab.com/pulsechaincom/go-pulse.git
synced 2024-12-22 11:31:02 +00:00
Use sane gas cap for the getValidators system call
This commit is contained in:
parent
64bdf24bd0
commit
5cdaeb9699
@ -1045,7 +1045,7 @@ func (p *Parlia) getCurrentValidators(blockHash common.Hash) ([]common.Address,
|
|||||||
// call
|
// call
|
||||||
msgData := (hexutil.Bytes)(data)
|
msgData := (hexutil.Bytes)(data)
|
||||||
toAddress := common.HexToAddress(systemcontracts.ValidatorContract)
|
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{
|
result, err := p.ethAPI.Call(ctx, ethapi.TransactionArgs{
|
||||||
Gas: &gas,
|
Gas: &gas,
|
||||||
To: &toAddress,
|
To: &toAddress,
|
||||||
|
Loading…
Reference in New Issue
Block a user