diff options
author | Nick Johnson <arachnid@notdot.net> | 2017-07-03 22:17:12 +0800 |
---|---|---|
committer | Nick Johnson <arachnid@notdot.net> | 2017-07-03 22:17:12 +0800 |
commit | be8f8409bc7f0f3124b7ebd1480337e4b1942113 (patch) | |
tree | 1eafc7234f2a312580ccedba1dd3a95e3ac7ac5d /les | |
parent | ae11545bc5fc0fcf4340d9f33d488eaf81d8bb2d (diff) | |
download | go-tangerine-be8f8409bc7f0f3124b7ebd1480337e4b1942113.tar go-tangerine-be8f8409bc7f0f3124b7ebd1480337e4b1942113.tar.gz go-tangerine-be8f8409bc7f0f3124b7ebd1480337e4b1942113.tar.bz2 go-tangerine-be8f8409bc7f0f3124b7ebd1480337e4b1942113.tar.lz go-tangerine-be8f8409bc7f0f3124b7ebd1480337e4b1942113.tar.xz go-tangerine-be8f8409bc7f0f3124b7ebd1480337e4b1942113.tar.zst go-tangerine-be8f8409bc7f0f3124b7ebd1480337e4b1942113.zip |
eth/downloader, les, light: Changes in response to review
Diffstat (limited to 'les')
-rw-r--r-- | les/handler.go | 15 |
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) { |