good morning!!!!
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
bor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
open
bor
Commits
0f74eca8
Unverified
Commit
0f74eca8
authored
Oct 17, 2020
by
Jaynti Kanani
Browse files
Options
Downloads
Patches
Plain Diff
chg: remove unwanted comments
parent
45230abb
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
core/rawdb/bor_receipt.go
+2
-5
2 additions, 5 deletions
core/rawdb/bor_receipt.go
with
2 additions
and
5 deletions
core/rawdb/bor_receipt.go
+
2
−
5
View file @
0f74eca8
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.
// freezer
Bor
ReceiptTable 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
(
freezer
Bor
ReceiptTable
,
number
)
if
len
(
data
)
>
0
{
h
,
_
:=
db
.
Ancient
(
freezerHashTable
,
number
)
if
common
.
BytesToHash
(
h
)
==
hash
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment