mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-17 09:23:48 +00:00
ethapi: GetTransactionReceipt panic fix
This commit is contained in:
parent
3654aeaa4f
commit
a721ab20d8
1 changed files with 3 additions and 0 deletions
|
|
@ -1006,6 +1006,9 @@ func (s *PublicTransactionPoolAPI) GetTransactionReceipt(hash common.Hash) (map[
|
|||
return nil, nil
|
||||
}
|
||||
receipt, _, _, _ := core.GetReceipt(s.b.ChainDb(), hash) // Old receipts don't have the lookup data available
|
||||
if receipt == nil {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
var signer types.Signer = types.FrontierSigner{}
|
||||
if tx.Protected() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue