This repository has been archived by the owner on Oct 4, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 166
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #417 from ethereumproject/fix/head-sync-tracking
core,eth: improve head sync tracking
- Loading branch information
Showing
12 changed files
with
231 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
language: go | ||
go_import_path: github.com/ethereumproject/go-ethereum | ||
go: 1.8 | ||
go: 1.8.x | ||
os: | ||
- linux | ||
- osx | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
package downloader | ||
|
||
import "github.com/ethereumproject/go-ethereum/logger" | ||
|
||
var mlogDownloader = logger.MLogRegisterAvailable("downloader", mLogLines) | ||
|
||
var mLogLines = []logger.MLogT{ | ||
mlogDownloaderRegisterPeer, | ||
mlogDownloaderUnregisterPeer, | ||
mlogDownloaderTuneQOS, | ||
} | ||
|
||
var mlogDownloaderRegisterPeer = logger.MLogT{ | ||
Description: "Called when the downloader registers a peer.", | ||
Receiver: "DOWNLOADER", | ||
Verb: "REGISTER", | ||
Subject: "PEER", | ||
Details: []logger.MLogDetailT{ | ||
{"PEER", "ID", "STRING"}, | ||
{"PEER", "VERSION", "INT"}, | ||
{"REGISTER", "ERROR", "STRING_OR_NULL"}, | ||
}, | ||
} | ||
|
||
var mlogDownloaderUnregisterPeer = logger.MLogT{ | ||
Description: "Called when the downloader unregisters a peer.", | ||
Receiver: "DOWNLOADER", | ||
Verb: "UNREGISTER", | ||
Subject: "PEER", | ||
Details: []logger.MLogDetailT{ | ||
{"PEER", "ID", "STRING"}, | ||
{"UNREGISTER", "ERROR", "STRING_OR_NULL"}, | ||
}, | ||
} | ||
|
||
var mlogDownloaderTuneQOS = logger.MLogT{ | ||
Description: `Called at intervals to gather peer latency statistics. Estimates request round trip time. | ||
RTT reports the estimated Request Round Trip time, confidence is measures from 0-1 (1 is ultimately confidenct), | ||
and TTL reports the Timeout Allowance for a single downloader request to finish within.`, | ||
Receiver: "DOWNLOADER", | ||
Verb: "TUNE", | ||
Subject: "QOS", | ||
Details: []logger.MLogDetailT{ | ||
{"QOS", "RTT", "DURATION"}, | ||
{"QOS", "CONFIDENCE", "NUMBER"}, | ||
{"QOS", "TTL", "DURATION"}, | ||
}, | ||
} |
Oops, something went wrong.