From a721ab20d8de4ef43c3c1d53d54247def2a805ee Mon Sep 17 00:00:00 2001 From: Anton Elmanov Date: Wed, 13 Dec 2017 15:52:50 +0300 Subject: [PATCH] ethapi: GetTransactionReceipt panic fix --- internal/ethapi/api.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/ethapi/api.go b/internal/ethapi/api.go index fe0ed81707..ea18678c99 100644 --- a/internal/ethapi/api.go +++ b/internal/ethapi/api.go @@ -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() {