diff options
author | Péter Szilágyi <peterke@gmail.com> | 2015-06-29 22:32:14 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2015-07-01 00:00:01 +0800 |
commit | aac2b6ae4c5cf6f78547159c47f9192babe3e6dd (patch) | |
tree | 15a82179744f457c89607f4d115f3dbecf9a2dde /eth/handler.go | |
parent | 5db8f447d597e55718263ba5ed1770290e3e0893 (diff) | |
download | go-tangerine-aac2b6ae4c5cf6f78547159c47f9192babe3e6dd.tar go-tangerine-aac2b6ae4c5cf6f78547159c47f9192babe3e6dd.tar.gz go-tangerine-aac2b6ae4c5cf6f78547159c47f9192babe3e6dd.tar.bz2 go-tangerine-aac2b6ae4c5cf6f78547159c47f9192babe3e6dd.tar.lz go-tangerine-aac2b6ae4c5cf6f78547159c47f9192babe3e6dd.tar.xz go-tangerine-aac2b6ae4c5cf6f78547159c47f9192babe3e6dd.tar.zst go-tangerine-aac2b6ae4c5cf6f78547159c47f9192babe3e6dd.zip |
eth: add the blocks from numbers protocol message
Diffstat (limited to 'eth/handler.go')
-rw-r--r-- | eth/handler.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/eth/handler.go b/eth/handler.go index d0456446d..3705f5bb6 100644 --- a/eth/handler.go +++ b/eth/handler.go @@ -240,7 +240,7 @@ func (pm *ProtocolManager) handleMsg(p *peer) error { pm.txpool.AddTransactions(txs) case GetBlockHashesMsg: - var request getBlockHashesMsgData + var request getBlockHashesData if err := msg.Decode(&request); err != nil { return errResp(ErrDecode, "->msg %v: %v", msg, err) } @@ -368,7 +368,7 @@ func (pm *ProtocolManager) handleMsg(p *peer) error { case NewBlockMsg: // Retrieve and decode the propagated block - var request newBlockMsgData + var request newBlockData if err := msg.Decode(&request); err != nil { return errResp(ErrDecode, "%v: %v", msg, err) } |