From 0f74eca8c6b2fc1e4d3cb210499c01e2685c7640 Mon Sep 17 00:00:00 2001 From: Jaynti Kanani Date: Sat, 17 Oct 2020 18:52:06 +0530 Subject: [PATCH] chg: remove unwanted comments --- core/rawdb/bor_receipt.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/core/rawdb/bor_receipt.go b/core/rawdb/bor_receipt.go index e34e0dc89b..f5fed74326 100644 --- a/core/rawdb/bor_receipt.go +++ b/core/rawdb/bor_receipt.go @@ -1,8 +1,6 @@ package rawdb import ( - "fmt" - "github.com/maticnetwork/bor/common" "github.com/maticnetwork/bor/core/types" "github.com/maticnetwork/bor/ethdb" @@ -13,7 +11,7 @@ import ( var ( borReceiptPrefix = []byte("bor-receipt-") // borReceiptPrefix + number + block hash -> bor block receipt - // freezerReceiptTable indicates the name of the freezer bor receipts table. + // freezerBorReceiptTable indicates the name of the freezer bor receipts table. freezerBorReceiptTable = "bor-receipts" ) @@ -51,14 +49,13 @@ func ReadBorReceiptRLP(db ethdb.Reader, hash common.Hash, number uint64) rlp.Raw // Then try to look up the data in leveldb. data, _ = db.Get(borReceiptKey(number, hash)) if len(data) > 0 { - fmt.Println("==> RAWDB IN ReadBorReceiptRLP", common.Bytes2Hex(data)) return data } // In the background freezer is moving data from leveldb to flatten files. // So during the first check for ancient db, the data is not yet in there, // but when we reach into leveldb, the data was already moved. That would // result in a not found error. - data, _ = db.Ancient(freezerReceiptTable, number) + data, _ = db.Ancient(freezerBorReceiptTable, number) if len(data) > 0 { h, _ := db.Ancient(freezerHashTable, number) if common.BytesToHash(h) == hash {