diff options
author | Felix Lange <fjl@twurst.com> | 2015-03-19 22:18:31 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2015-03-19 22:18:31 +0800 |
commit | e80dda605130479086bed363e395a102a89a574a (patch) | |
tree | f5ddd0887d1366794d10ee43b656a7d15fefc945 /eth/backend.go | |
parent | b9e0b11e7da387bbb426d25c36d495c4f099722f (diff) | |
download | dexon-e80dda605130479086bed363e395a102a89a574a.tar.gz dexon-e80dda605130479086bed363e395a102a89a574a.tar.zst dexon-e80dda605130479086bed363e395a102a89a574a.zip |
eth, whisper: adapt for RLP encoder switch in package p2p
I have rewritten the protocol test to use p2p.MsgPipe because
p2p.NewMsg is gone.
Diffstat (limited to 'eth/backend.go')
-rw-r--r-- | eth/backend.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/eth/backend.go b/eth/backend.go index 9e5324688..afe314d74 100644 --- a/eth/backend.go +++ b/eth/backend.go @@ -405,7 +405,7 @@ func (self *Ethereum) txBroadcastLoop() { // automatically stops if unsubscribe for obj := range self.txSub.Chan() { event := obj.(core.TxPreEvent) - self.net.Broadcast("eth", TxMsg, event.Tx.RlpData()) + self.net.Broadcast("eth", TxMsg, []*types.Transaction{event.Tx}) } } @@ -414,7 +414,7 @@ func (self *Ethereum) blockBroadcastLoop() { for obj := range self.blockSub.Chan() { switch ev := obj.(type) { case core.NewMinedBlockEvent: - self.net.Broadcast("eth", NewBlockMsg, ev.Block.RlpData(), ev.Block.Td) + self.net.Broadcast("eth", NewBlockMsg, []interface{}{ev.Block, ev.Block.Td}) } } } |