From d3fe97ad4ef97f7e9b1ede89ed10188900841624 Mon Sep 17 00:00:00 2001
From: Jaynti Kanani <jdkanani@gmail.com>
Date: Sat, 17 Oct 2020 19:19:05 +0530
Subject: [PATCH] chg: no need for txhash

---
 core/types/bor_receipt.go | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/core/types/bor_receipt.go b/core/types/bor_receipt.go
index a62895e31..d88a3baa0 100644
--- a/core/types/bor_receipt.go
+++ b/core/types/bor_receipt.go
@@ -5,7 +5,6 @@ import (
 	"math/big"
 
 	"github.com/maticnetwork/bor/common"
-	"github.com/maticnetwork/bor/crypto"
 	"github.com/maticnetwork/bor/rlp"
 )
 
@@ -96,13 +95,13 @@ func decodeStoredBorReceiptRLP(r *BorReceiptForStorage, blob []byte) error {
 // DeriveFields fills the receipts with their computed fields based on consensus
 // data and contextual infos like containing block and transactions.
 func (r *BorReceipt) DeriveFields(hash common.Hash, number uint64) error {
-	txHash := common.BytesToHash(crypto.Keccak256(append([]byte("matic-receipt-"), hash.Bytes()...)))
+	// txHash := common.BytesToHash(crypto.Keccak256(append([]byte("bor-receipt-"), hash.Bytes()...)))
 
 	// The derived log fields can simply be set from the block and transaction
 	for j := 0; j < len(r.Logs); j++ {
 		r.Logs[j].BlockNumber = number
 		r.Logs[j].BlockHash = hash
-		r.Logs[j].TxHash = txHash
+		// r.Logs[j].TxHash = txHash
 		r.Logs[j].TxIndex = uint(0)
 		r.Logs[j].Index = uint(j)
 	}
-- 
GitLab