diff --git a/core/blockchain.go b/core/blockchain.go index c719883ee53a7f3e08a83222890008777bcc5d5b..156efe303a886d4778cd07a0740501727c8b63b1 100644 --- a/core/blockchain.go +++ b/core/blockchain.go @@ -644,6 +644,9 @@ func (bc *BlockChain) GetReceiptsByHash(hash common.Hash) types.Receipts { return nil } receipts := rawdb.ReadReceipts(bc.db, hash, *number) + if receipts == nil { + return nil + } bc.receiptsCache.Add(hash, receipts) return receipts }