diff options
author | Péter Szilágyi <peterke@gmail.com> | 2019-04-10 20:45:13 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-10 20:45:13 +0800 |
commit | cdae1c59abc32f85debfa29577fbf1ed036ebf73 (patch) | |
tree | 1cead73084658ee9b15288d6ecab07bbf37cf90c /les/handler.go | |
parent | 14ae1246b789dd2a0a2bd22f0c7d3256daa26759 (diff) | |
parent | 0b00e19ed93512865dccdef1a340c27e6985aa82 (diff) | |
download | go-tangerine-1.8.26.tar go-tangerine-1.8.26.tar.gz go-tangerine-1.8.26.tar.bz2 go-tangerine-1.8.26.tar.lz go-tangerine-1.8.26.tar.xz go-tangerine-1.8.26.tar.zst go-tangerine-1.8.26.zip |
Merge pull request #19437 from zsfelfoldi/fix-sendtxv1.8.26
les: fix SendTx cost calculation and verify cost table
Diffstat (limited to 'les/handler.go')
-rw-r--r-- | les/handler.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/les/handler.go b/les/handler.go index 19ccbcd2b..2fb2067dd 100644 --- a/les/handler.go +++ b/les/handler.go @@ -324,7 +324,11 @@ func (pm *ProtocolManager) handle(p *peer) error { } } -var reqList = []uint64{GetBlockHeadersMsg, GetBlockBodiesMsg, GetCodeMsg, GetReceiptsMsg, GetProofsV1Msg, SendTxMsg, SendTxV2Msg, GetTxStatusMsg, GetHeaderProofsMsg, GetProofsV2Msg, GetHelperTrieProofsMsg} +var ( + reqList = []uint64{GetBlockHeadersMsg, GetBlockBodiesMsg, GetCodeMsg, GetReceiptsMsg, GetProofsV1Msg, SendTxMsg, SendTxV2Msg, GetTxStatusMsg, GetHeaderProofsMsg, GetProofsV2Msg, GetHelperTrieProofsMsg} + reqListV1 = []uint64{GetBlockHeadersMsg, GetBlockBodiesMsg, GetCodeMsg, GetReceiptsMsg, GetProofsV1Msg, SendTxMsg, GetHeaderProofsMsg} + reqListV2 = []uint64{GetBlockHeadersMsg, GetBlockBodiesMsg, GetCodeMsg, GetReceiptsMsg, SendTxV2Msg, GetTxStatusMsg, GetProofsV2Msg, GetHelperTrieProofsMsg} +) // handleMsg is invoked whenever an inbound message is received from a remote // peer. The remote connection is torn down upon returning any error. |