diff options
author | Péter Szilágyi <peterke@gmail.com> | 2019-07-10 13:54:06 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2019-07-10 14:12:07 +0800 |
commit | c705aac826ca41744f303b9adb239f1e09bff86e (patch) | |
tree | dcadfcb37f5405865f5f83031ccd2edcdc35ae56 /les | |
parent | c6a9616cfdeca0cdbc01686750437a76b0e7d485 (diff) | |
download | go-tangerine-c705aac826ca41744f303b9adb239f1e09bff86e.tar go-tangerine-c705aac826ca41744f303b9adb239f1e09bff86e.tar.gz go-tangerine-c705aac826ca41744f303b9adb239f1e09bff86e.tar.bz2 go-tangerine-c705aac826ca41744f303b9adb239f1e09bff86e.tar.lz go-tangerine-c705aac826ca41744f303b9adb239f1e09bff86e.tar.xz go-tangerine-c705aac826ca41744f303b9adb239f1e09bff86e.tar.zst go-tangerine-c705aac826ca41744f303b9adb239f1e09bff86e.zip |
cmd, eth, les: make les flags conform to dotted style
Diffstat (limited to 'les')
-rw-r--r-- | les/costtracker.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/les/costtracker.go b/les/costtracker.go index 2d9c95af7..61b076d15 100644 --- a/les/costtracker.go +++ b/les/costtracker.go @@ -139,11 +139,11 @@ func newCostTracker(db ethdb.Database, config *eth.Config) (*costTracker, uint64 reqInfoCh: make(chan reqInfo, 100), utilTarget: utilTarget, } - if config.LightBandwidthIn > 0 { - ct.inSizeFactor = utilTarget / float64(config.LightBandwidthIn) + if config.LightIngress > 0 { + ct.inSizeFactor = utilTarget / float64(config.LightIngress) } - if config.LightBandwidthOut > 0 { - ct.outSizeFactor = utilTarget / float64(config.LightBandwidthOut) + if config.LightEgress > 0 { + ct.outSizeFactor = utilTarget / float64(config.LightEgress) } if makeCostStats { ct.stats = make(map[uint64][]uint64) |