diff options
author | Sonic <sonic@cobinhood.com> | 2018-09-19 19:07:10 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@byzantine-lab.io> | 2019-06-12 17:21:31 +0800 |
commit | bbd696f96d32b06b5bcffa1b97682d372b7eee31 (patch) | |
tree | 67e0a77155aa04c423a1c6999a5070c88bfa3ed8 /dex/metrics.go | |
parent | d461a77d0c7c34c4d686c22f0c9d4bb77fd17569 (diff) | |
download | go-tangerine-bbd696f96d32b06b5bcffa1b97682d372b7eee31.tar go-tangerine-bbd696f96d32b06b5bcffa1b97682d372b7eee31.tar.gz go-tangerine-bbd696f96d32b06b5bcffa1b97682d372b7eee31.tar.bz2 go-tangerine-bbd696f96d32b06b5bcffa1b97682d372b7eee31.tar.lz go-tangerine-bbd696f96d32b06b5bcffa1b97682d372b7eee31.tar.xz go-tangerine-bbd696f96d32b06b5bcffa1b97682d372b7eee31.tar.zst go-tangerine-bbd696f96d32b06b5bcffa1b97682d372b7eee31.zip |
dex: introduce dex64 and remove eth62, eth63
Diffstat (limited to 'dex/metrics.go')
-rw-r--r-- | dex/metrics.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/dex/metrics.go b/dex/metrics.go index 8d923ed70..0aa88fff6 100644 --- a/dex/metrics.go +++ b/dex/metrics.go @@ -92,9 +92,9 @@ func (rw *meteredMsgReadWriter) ReadMsg() (p2p.Msg, error) { case msg.Code == BlockBodiesMsg: packets, traffic = reqBodyInPacketsMeter, reqBodyInTrafficMeter - case rw.version >= eth63 && msg.Code == NodeDataMsg: + case msg.Code == NodeDataMsg: packets, traffic = reqStateInPacketsMeter, reqStateInTrafficMeter - case rw.version >= eth63 && msg.Code == ReceiptsMsg: + case msg.Code == ReceiptsMsg: packets, traffic = reqReceiptInPacketsMeter, reqReceiptInTrafficMeter case msg.Code == NewBlockHashesMsg: @@ -119,9 +119,9 @@ func (rw *meteredMsgReadWriter) WriteMsg(msg p2p.Msg) error { case msg.Code == BlockBodiesMsg: packets, traffic = reqBodyOutPacketsMeter, reqBodyOutTrafficMeter - case rw.version >= eth63 && msg.Code == NodeDataMsg: + case msg.Code == NodeDataMsg: packets, traffic = reqStateOutPacketsMeter, reqStateOutTrafficMeter - case rw.version >= eth63 && msg.Code == ReceiptsMsg: + case msg.Code == ReceiptsMsg: packets, traffic = reqReceiptOutPacketsMeter, reqReceiptOutTrafficMeter case msg.Code == NewBlockHashesMsg: |