aboutsummaryrefslogtreecommitdiffstats
path: root/eth/peer.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2015-09-08 01:43:01 +0800
committerPéter Szilágyi <peterke@gmail.com>2015-09-11 22:42:25 +0800
commitcdc2662c4098d68a7b450b9b9ff2688acbffcee4 (patch)
tree2dfb3b7365895203132bd6d1aa650b5a239b01eb /eth/peer.go
parent2b339cbbd8bb475d2195d54a71dcced700003430 (diff)
downloadgo-tangerine-cdc2662c4098d68a7b450b9b9ff2688acbffcee4.tar
go-tangerine-cdc2662c4098d68a7b450b9b9ff2688acbffcee4.tar.gz
go-tangerine-cdc2662c4098d68a7b450b9b9ff2688acbffcee4.tar.bz2
go-tangerine-cdc2662c4098d68a7b450b9b9ff2688acbffcee4.tar.lz
go-tangerine-cdc2662c4098d68a7b450b9b9ff2688acbffcee4.tar.xz
go-tangerine-cdc2662c4098d68a7b450b9b9ff2688acbffcee4.tar.zst
go-tangerine-cdc2662c4098d68a7b450b9b9ff2688acbffcee4.zip
core: split out TD from database and all internals
Diffstat (limited to 'eth/peer.go')
-rw-r--r--eth/peer.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/eth/peer.go b/eth/peer.go
index f1ddd9726..603b49b88 100644
--- a/eth/peer.go
+++ b/eth/peer.go
@@ -28,6 +28,7 @@ import (
"github.com/ethereum/go-ethereum/logger"
"github.com/ethereum/go-ethereum/logger/glog"
"github.com/ethereum/go-ethereum/p2p"
+ "github.com/ethereum/go-ethereum/rlp"
"gopkg.in/fatih/set.v0"
)
@@ -186,8 +187,8 @@ func (p *peer) SendBlockBodies(bodies []*blockBody) error {
// SendBlockBodiesRLP sends a batch of block contents to the remote peer from
// an already RLP encoded format.
-func (p *peer) SendBlockBodiesRLP(bodies []*blockBodyRLP) error {
- return p2p.Send(p.rw, BlockBodiesMsg, blockBodiesRLPData(bodies))
+func (p *peer) SendBlockBodiesRLP(bodies []rlp.RawValue) error {
+ return p2p.Send(p.rw, BlockBodiesMsg, bodies)
}
// SendNodeData sends a batch of arbitrary internal data, corresponding to the