diff options
author | Péter Szilágyi <peterke@gmail.com> | 2017-02-25 00:23:03 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2017-02-27 19:16:40 +0800 |
commit | 0a63c3e3625e9f5e18f6c2a95934a37b1dcac6c7 (patch) | |
tree | fd46762d36d87508fc3b2900f5d4f05f60e49be7 /eth/downloader/modes.go | |
parent | 5c8fe28b725bd9b128edceae3215132ea741641b (diff) | |
download | dexon-0a63c3e3625e9f5e18f6c2a95934a37b1dcac6c7.tar dexon-0a63c3e3625e9f5e18f6c2a95934a37b1dcac6c7.tar.gz dexon-0a63c3e3625e9f5e18f6c2a95934a37b1dcac6c7.tar.bz2 dexon-0a63c3e3625e9f5e18f6c2a95934a37b1dcac6c7.tar.lz dexon-0a63c3e3625e9f5e18f6c2a95934a37b1dcac6c7.tar.xz dexon-0a63c3e3625e9f5e18f6c2a95934a37b1dcac6c7.tar.zst dexon-0a63c3e3625e9f5e18f6c2a95934a37b1dcac6c7.zip |
eth/downloader: port over old logs from glog to log15
Diffstat (limited to 'eth/downloader/modes.go')
-rw-r--r-- | eth/downloader/modes.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/eth/downloader/modes.go b/eth/downloader/modes.go index ec339c074..c2ce0cfef 100644 --- a/eth/downloader/modes.go +++ b/eth/downloader/modes.go @@ -24,3 +24,11 @@ const ( FastSync // Quickly download the headers, full sync only at the chain head LightSync // Download only the headers and terminate afterwards ) + +// syncModeLabels contains a mapping of sync modes to textual label used by the +// logging system. +var syncModeLabels = map[SyncMode]string{ + FullSync: "full", + FastSync: "fast", + LightSync: "light", +} |