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
01dc1c13
Commit
01dc1c13
authored
Dec 14, 2014
by
zelig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
blockpool rewritten , tests broken FIXME
parent
4dfce462
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
292 deletions
+8
-292
block_pool.go
eth/block_pool.go
+8
-0
protocol.go
eth/protocol.go
+0
-292
No files found.
eth/block_pool.go
View file @
01dc1c13
...
...
@@ -55,7 +55,11 @@ type BlockPool struct {
// the minimal interface with blockchain
hasBlock
func
(
hash
[]
byte
)
bool
insertChain
func
(
types
.
Blocks
)
error
<<<<<<<
HEAD
verifyPoW
func
(
pow
.
Block
)
bool
=======
verifyPoW
func
(
*
types
.
Block
)
bool
>>>>>>>
blockpool
rewritten
,
tests
broken
FIXME
}
type
peerInfo
struct
{
...
...
@@ -74,7 +78,11 @@ type peerInfo struct {
quitC
chan
bool
}
<<<<<<<
HEAD
func
NewBlockPool
(
hasBlock
func
(
hash
[]
byte
)
bool
,
insertChain
func
(
types
.
Blocks
)
error
,
verifyPoW
func
(
pow
.
Block
)
bool
,
=======
func
NewBlockPool
(
hasBlock
func
(
hash
[]
byte
)
bool
,
insertChain
func
(
types
.
Blocks
)
error
,
verifyPoW
func
(
*
types
.
Block
)
bool
,
>>>>>>>
blockpool
rewritten
,
tests
broken
FIXME
)
*
BlockPool
{
return
&
BlockPool
{
hasBlock
:
hasBlock
,
...
...
eth/protocol.go
View file @
01dc1c13
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