File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -445,11 +445,7 @@ func (bc *BlockChain) repair(head **types.Block) error {
445
445
return nil
446
446
}
447
447
// 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 )
453
449
}
454
450
}
455
451
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ import (
24
24
"github.com/ethereum/go-ethereum/p2p/netutil"
25
25
)
26
26
27
- // ServeListener accepts connections on l, serving IPC -RPC on them.
27
+ // ServeListener accepts connections on l, serving JSON -RPC on them.
28
28
func (srv * Server ) ServeListener (l net.Listener ) error {
29
29
for {
30
30
conn , err := l .Accept ()
You can’t perform that action at this time.
0 commit comments