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
3dba6a6d
Commit
3dba6a6d
authored
Nov 28, 2018
by
Franklin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove unrelated code
parent
21dd59bd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
6 deletions
+2
-6
blockchain.go
core/blockchain.go
+1
-5
ipc.go
rpc/ipc.go
+1
-1
No files found.
core/blockchain.go
View file @
3dba6a6d
...
...
@@ -445,11 +445,7 @@ func (bc *BlockChain) repair(head **types.Block) error {
return
nil
}
// Otherwise rewind one block and recheck state availability there
block
:=
bc
.
GetBlock
((
*
head
)
.
ParentHash
(),
(
*
head
)
.
NumberU64
()
-
1
)
if
block
==
nil
{
return
fmt
.
Errorf
(
"failed to repair block, can not get block at height %d"
,
(
*
head
)
.
NumberU64
())
}
(
*
head
)
=
block
(
*
head
)
=
bc
.
GetBlock
((
*
head
)
.
ParentHash
(),
(
*
head
)
.
NumberU64
()
-
1
)
}
}
...
...
rpc/ipc.go
View file @
3dba6a6d
...
...
@@ -24,7 +24,7 @@ import (
"github.com/ethereum/go-ethereum/p2p/netutil"
)
// ServeListener accepts connections on l, serving
IPC
-RPC on them.
// ServeListener accepts connections on l, serving
JSON
-RPC on them.
func
(
srv
*
Server
)
ServeListener
(
l
net
.
Listener
)
error
{
for
{
conn
,
err
:=
l
.
Accept
()
...
...
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