aboutsummaryrefslogtreecommitdiffstats
path: root/les/handler.go
diff options
context:
space:
mode:
authorNick Johnson <arachnid@notdot.net>2017-07-03 22:17:12 +0800
committerNick Johnson <arachnid@notdot.net>2017-07-03 22:17:12 +0800
commitbe8f8409bc7f0f3124b7ebd1480337e4b1942113 (patch)
tree1eafc7234f2a312580ccedba1dd3a95e3ac7ac5d /les/handler.go
parentae11545bc5fc0fcf4340d9f33d488eaf81d8bb2d (diff)
downloaddexon-be8f8409bc7f0f3124b7ebd1480337e4b1942113.tar
dexon-be8f8409bc7f0f3124b7ebd1480337e4b1942113.tar.gz
dexon-be8f8409bc7f0f3124b7ebd1480337e4b1942113.tar.bz2
dexon-be8f8409bc7f0f3124b7ebd1480337e4b1942113.tar.lz
dexon-be8f8409bc7f0f3124b7ebd1480337e4b1942113.tar.xz
dexon-be8f8409bc7f0f3124b7ebd1480337e4b1942113.tar.zst
dexon-be8f8409bc7f0f3124b7ebd1480337e4b1942113.zip
eth/downloader, les, light: Changes in response to review
Diffstat (limited to 'les/handler.go')
-rw-r--r--les/handler.go15
1 files changed, 1 insertions, 14 deletions
diff --git a/les/handler.go b/les/handler.go
index 967b31521..39045ecbe 100644
--- a/les/handler.go
+++ b/les/handler.go
@@ -895,26 +895,13 @@ func (pc *peerConnection) RequestHeadersByNumber(origin uint64, amount int, skip
return nil
}
-func (pc *peerConnection) RequestBodies(hashes []common.Hash) error {
- panic("RequestBodies not supported in light client mode sync")
-
-}
-func (pc *peerConnection) RequestReceipts(hashes []common.Hash) error {
- panic("RequestReceipts not supported in light client mode sync")
-
-}
-
-func (pc *peerConnection) RequestNodeData(hashes []common.Hash) error {
- panic("RequestNodeData not supported in light client mode sync")
-}
-
func (d *downloaderPeerNotify) registerPeer(p *peer) {
pm := (*ProtocolManager)(d)
pc := &peerConnection{
manager: pm,
peer: p,
}
- pm.downloader.RegisterPeer(p.id, ethVersion, pc)
+ pm.downloader.RegisterLightPeer(p.id, ethVersion, pc)
}
func (d *downloaderPeerNotify) unregisterPeer(p *peer) {