blockpool stability fixes:
- follow up locks and fix them - chainManager: call SetQueued for parentErr future blocks, uncomment TD checks, unskip test - make ErrIncorrectTD non-fatal to be forgiving to genuine mistaken nodes (temp) but demote them to guard against stuck best peers. - add purging to bounded nodeCache (config nodeCacheSize) - use nodeCache when creating blockpool entries and let non-best peers add blocks (performance boost) - minor error in addError - reduce idleBestPeerTimeout to 1 minute - correct status counts and unskip status passing status test - glogified logging
Showing
- blockpool/blockpool.go 104 additions, 80 deletionsblockpool/blockpool.go
- blockpool/blockpool_test.go 8 additions, 28 deletionsblockpool/blockpool_test.go
- blockpool/config_test.go 3 additions, 1 deletionblockpool/config_test.go
- blockpool/errors_test.go 13 additions, 14 deletionsblockpool/errors_test.go
- blockpool/peers.go 82 additions, 87 deletionsblockpool/peers.go
- blockpool/peers_test.go 71 additions, 42 deletionsblockpool/peers_test.go
- blockpool/section.go 43 additions, 48 deletionsblockpool/section.go
- blockpool/status_test.go 32 additions, 44 deletionsblockpool/status_test.go
- core/chain_manager.go 1 addition, 0 deletionscore/chain_manager.go
- errs/errors.go 1 addition, 8 deletionserrs/errors.go
- errs/errors_test.go 1 addition, 1 deletionerrs/errors_test.go
- eth/protocol.go 5 additions, 7 deletionseth/protocol.go
- logger/glog/README 6 additions, 6 deletionslogger/glog/README
Loading
Please register or sign in to comment