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
This commit is contained in:
@ -69,7 +69,7 @@ func (self *Errors) New(code int, format string, params ...interface{}) *Error {
|
||||
|
||||
func (self Error) Error() (message string) {
|
||||
if len(message) == 0 {
|
||||
self.message = fmt.Sprintf("[%s] %s", self.Package, self.Name)
|
||||
self.message = fmt.Sprintf("[%s] ERROR: %s", self.Package, self.Name)
|
||||
if self.format != "" {
|
||||
self.message += ": " + fmt.Sprintf(self.format, self.params...)
|
||||
}
|
||||
@ -81,15 +81,8 @@ func (self Error) Log(v glog.Verbose) {
|
||||
if v {
|
||||
v.Infoln(self)
|
||||
}
|
||||
//log.Sendln(self.level, self)
|
||||
}
|
||||
|
||||
/*
|
||||
func (self Error) Log(log *logger.Logger) {
|
||||
log.Sendln(self.level, self)
|
||||
}
|
||||
*/
|
||||
|
||||
/*
|
||||
err.Fatal() is true if err's severity level is 0 or 1 (logger.ErrorLevel or logger.Silence)
|
||||
*/
|
||||
|
Reference in New Issue
Block a user