mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-03 09:37:38 +00:00
Don't panic on some AuRa transactions in the past (#6760)
Example request that crashed the RPC method handler on Gnosis Chain mainnet. ``` { "id": "1", "jsonrpc": "2.0", "method": "debug_traceBlockByNumber", "params": [ "0x8a1f76", { "tracer": "callTracer" } ] } ```
This commit is contained in:
parent
d9937b5628
commit
eb0f7e463a
@ -1251,10 +1251,16 @@ func (c *AuRa) IsServiceTransaction(sender libcommon.Address, syscall consensus.
|
||||
}
|
||||
res, err := certifierAbi().Unpack("certified", out)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
log.Warn("error while detecting service tx on AuRa", "err", err)
|
||||
return false
|
||||
}
|
||||
certified := res[0].(bool)
|
||||
return certified
|
||||
if len(res) == 0 {
|
||||
return false
|
||||
}
|
||||
if certified, ok := res[0].(bool); ok {
|
||||
return certified
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
// Close implements consensus.Engine. It's a noop for clique as there are no background threads.
|
||||
|
Loading…
Reference in New Issue
Block a user