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
2f2959d0
Unverified
Commit
2f2959d0
authored
May 17, 2023
by
John Chase
Committed by
GitHub
May 17, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
core/state/pruner: remove unused error-return (#27273)
parent
eb83e7c5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
bloom.go
core/state/pruner/bloom.go
+2
-2
pruner.go
core/state/pruner/pruner.go
+1
-3
No files found.
core/state/pruner/bloom.go
View file @
2f2959d0
...
...
@@ -127,6 +127,6 @@ func (bloom *stateBloom) Delete(key []byte) error { panic("not supported") }
// reports whether the key is contained.
// - If it says yes, the key may be contained
// - If it says no, the key is definitely not contained.
func
(
bloom
*
stateBloom
)
Contain
(
key
[]
byte
)
(
bool
,
error
)
{
return
bloom
.
bloom
.
Contains
(
stateBloomHasher
(
key
))
,
nil
func
(
bloom
*
stateBloom
)
Contain
(
key
[]
byte
)
bool
{
return
bloom
.
bloom
.
Contains
(
stateBloomHasher
(
key
))
}
core/state/pruner/pruner.go
View file @
2f2959d0
...
...
@@ -146,9 +146,7 @@ func prune(snaptree *snapshot.Tree, root common.Hash, maindb ethdb.Database, sta
if
_
,
exist
:=
middleStateRoots
[
common
.
BytesToHash
(
checkKey
)];
exist
{
log
.
Debug
(
"Forcibly delete the middle state roots"
,
"hash"
,
common
.
BytesToHash
(
checkKey
))
}
else
{
if
ok
,
err
:=
stateBloom
.
Contain
(
checkKey
);
err
!=
nil
{
return
err
}
else
if
ok
{
if
stateBloom
.
Contain
(
checkKey
)
{
continue
}
}
...
...
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