aboutsummaryrefslogtreecommitdiffstats
path: root/errs/errors.go
diff options
context:
space:
mode:
authorzelig <viktor.tron@gmail.com>2015-04-13 03:25:09 +0800
committerzelig <viktor.tron@gmail.com>2015-04-13 20:13:55 +0800
commit3d57e377a4e95941fd3f572b42e073b40d10d27c (patch)
tree95807260bab2e43c6929d6d4b5c05144ed2fd5c9 /errs/errors.go
parentfaa2747809ddce7e7b121926ae7dece8fbecae52 (diff)
downloaddexon-3d57e377a4e95941fd3f572b42e073b40d10d27c.tar.gz
dexon-3d57e377a4e95941fd3f572b42e073b40d10d27c.tar.zst
dexon-3d57e377a4e95941fd3f572b42e073b40d10d27c.zip
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
Diffstat (limited to 'errs/errors.go')
-rw-r--r--errs/errors.go9
1 files changed, 1 insertions, 8 deletions
diff --git a/errs/errors.go b/errs/errors.go
index 2e6c32494..face9b947 100644
--- a/errs/errors.go
+++ b/errs/errors.go
@@ -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,16 +81,9 @@ 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)
*/
func (self *Error) Fatal() (fatal bool) {