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
3054fd48
Commit
3054fd48
authored
Jun 09, 2015
by
Jeffrey Wilcke
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1215 from obscuren/issue1202
core: skip genesis block for reprocess. Closes #1202
parents
7da8ebdf
190c1b68
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
filter.go
core/filter.go
+10
-5
No files found.
core/filter.go
View file @
3054fd48
package
core
import
(
"fmt"
"math"
"github.com/ethereum/go-ethereum/common"
...
...
@@ -75,15 +76,19 @@ func (self *Filter) Find() state.Logs {
var
(
logs
state
.
Logs
block
=
self
.
eth
.
ChainManager
()
.
GetBlockByNumber
(
latestBlockNo
)
quit
bool
)
for
i
:=
0
;
!
quit
&&
block
!=
nil
;
i
++
{
done
:
for
i
:=
0
;
block
!=
nil
;
i
++
{
fmt
.
Println
(
block
.
NumberU64
()
==
0
)
// Quit on latest
switch
{
case
block
.
NumberU64
()
==
earliestBlockNo
,
block
.
NumberU64
()
==
0
:
quit
=
true
case
block
.
NumberU64
()
==
0
:
break
done
case
block
.
NumberU64
()
==
earliestBlockNo
:
break
done
case
self
.
max
<=
len
(
logs
)
:
break
break
done
}
// Use bloom filtering to see if this block is interesting given the
...
...
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