aboutsummaryrefslogtreecommitdiffstats
path: root/lds/txrelay.go
diff options
context:
space:
mode:
authorSonic <sonic@dexon.org>2019-05-08 16:13:05 +0800
committerSonic <sonic@dexon.org>2019-05-08 16:14:44 +0800
commit732611145661380064ef31f7e60d50da6bd7a04a (patch)
treef34efc9b1e5b256b3218e2e967678fe18a81f1e9 /lds/txrelay.go
parent8ddf407b731f6baf1af1275c07b6861579cbc749 (diff)
downloaddexon-732611145661380064ef31f7e60d50da6bd7a04a.tar
dexon-732611145661380064ef31f7e60d50da6bd7a04a.tar.gz
dexon-732611145661380064ef31f7e60d50da6bd7a04a.tar.bz2
dexon-732611145661380064ef31f7e60d50da6bd7a04a.tar.lz
dexon-732611145661380064ef31f7e60d50da6bd7a04a.tar.xz
dexon-732611145661380064ef31f7e60d50da6bd7a04a.tar.zst
dexon-732611145661380064ef31f7e60d50da6bd7a04a.zip
lds: remove LES/1 related code
Diffstat (limited to 'lds/txrelay.go')
-rw-r--r--lds/txrelay.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/lds/txrelay.go b/lds/txrelay.go
index 7feb2c189..16eccfdc6 100644
--- a/lds/txrelay.go
+++ b/lds/txrelay.go
@@ -118,14 +118,14 @@ func (self *LdsTxRelay) send(txs types.Transactions, count int) {
rq := &distReq{
getCost: func(dp distPeer) uint64 {
peer := dp.(*peer)
- return peer.GetRequestCost(SendTxMsg, len(ll))
+ return peer.GetRequestCost(SendTxV2Msg, len(ll))
},
canSend: func(dp distPeer) bool {
return dp.(*peer) == pp
},
request: func(dp distPeer) func() {
peer := dp.(*peer)
- cost := peer.GetRequestCost(SendTxMsg, len(ll))
+ cost := peer.GetRequestCost(SendTxV2Msg, len(ll))
peer.fcServer.QueueRequest(reqID, cost)
return func() { peer.SendTxs(reqID, cost, ll) }
},