aboutsummaryrefslogtreecommitdiffstats
path: root/les/handler.go
diff options
context:
space:
mode:
authorZsolt Felfoldi <zsfelfoldi@gmail.com>2019-04-10 17:01:54 +0800
committerZsolt Felfoldi <zsfelfoldi@gmail.com>2019-04-10 19:12:46 +0800
commitc8d8126bd0c4cc091978ba6dc8c656452f97ed4a (patch)
tree989421730bdf5c62612117abf058629709aa793c /les/handler.go
parent0de9f32ae8346ece3bbd596291f132385962d0ca (diff)
downloadgo-tangerine-c8d8126bd0c4cc091978ba6dc8c656452f97ed4a.tar
go-tangerine-c8d8126bd0c4cc091978ba6dc8c656452f97ed4a.tar.gz
go-tangerine-c8d8126bd0c4cc091978ba6dc8c656452f97ed4a.tar.bz2
go-tangerine-c8d8126bd0c4cc091978ba6dc8c656452f97ed4a.tar.lz
go-tangerine-c8d8126bd0c4cc091978ba6dc8c656452f97ed4a.tar.xz
go-tangerine-c8d8126bd0c4cc091978ba6dc8c656452f97ed4a.tar.zst
go-tangerine-c8d8126bd0c4cc091978ba6dc8c656452f97ed4a.zip
les: check required message types in cost table
Diffstat (limited to 'les/handler.go')
-rw-r--r--les/handler.go6
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.