Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
2f4996a9
Unverified
Commit
2f4996a9
authored
2 years ago
by
Martin Holst Swende
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ethdb/remotedb: fix flawed check in Has/HasAncient
parent
5c5ef6f1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
remotedb.go
ethdb/remotedb/remotedb.go
+4
-4
No files found.
ethdb/remotedb/remotedb.go
View file @
2f4996a9
...
...
@@ -37,9 +37,9 @@ type Database struct {
func
(
db
*
Database
)
Has
(
key
[]
byte
)
(
bool
,
error
)
{
if
_
,
err
:=
db
.
Get
(
key
);
err
!=
nil
{
return
tru
e
,
nil
return
fals
e
,
nil
}
return
fals
e
,
nil
return
tru
e
,
nil
}
func
(
db
*
Database
)
Get
(
key
[]
byte
)
([]
byte
,
error
)
{
...
...
@@ -53,9 +53,9 @@ func (db *Database) Get(key []byte) ([]byte, error) {
func
(
db
*
Database
)
HasAncient
(
kind
string
,
number
uint64
)
(
bool
,
error
)
{
if
_
,
err
:=
db
.
Ancient
(
kind
,
number
);
err
!=
nil
{
return
tru
e
,
nil
return
fals
e
,
nil
}
return
fals
e
,
nil
return
tru
e
,
nil
}
func
(
db
*
Database
)
Ancient
(
kind
string
,
number
uint64
)
([]
byte
,
error
)
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment