Skip to content

Commit 3dba6a6

Browse files
committed
remove unrelated code
1 parent 21dd59b commit 3dba6a6

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

core/blockchain.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -445,11 +445,7 @@ func (bc *BlockChain) repair(head **types.Block) error {
445445
return nil
446446
}
447447
// Otherwise rewind one block and recheck state availability there
448-
block := bc.GetBlock((*head).ParentHash(), (*head).NumberU64()-1)
449-
if block == nil {
450-
return fmt.Errorf("failed to repair block, can not get block at height %d", (*head).NumberU64())
451-
}
452-
(*head) = block
448+
(*head) = bc.GetBlock((*head).ParentHash(), (*head).NumberU64()-1)
453449
}
454450
}
455451

rpc/ipc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import (
2424
"github.com/ethereum/go-ethereum/p2p/netutil"
2525
)
2626

27-
// ServeListener accepts connections on l, serving IPC-RPC on them.
27+
// ServeListener accepts connections on l, serving JSON-RPC on them.
2828
func (srv *Server) ServeListener(l net.Listener) error {
2929
for {
3030
conn, err := l.Accept()

0 commit comments

Comments
 (0)