diff options
author | obscuren <geffobscura@gmail.com> | 2014-12-23 20:48:44 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-12-23 20:48:44 +0800 |
commit | 4cd79d8ddd7608d60344b13fe4bda7315429d1d9 (patch) | |
tree | 0d1abaa9ef5c302c1ef51e8e8dbd94e9e696f28a /eth | |
parent | 4b52cd512d3c54451e680fcc6c3d67d059065bec (diff) | |
download | dexon-4cd79d8ddd7608d60344b13fe4bda7315429d1d9.tar dexon-4cd79d8ddd7608d60344b13fe4bda7315429d1d9.tar.gz dexon-4cd79d8ddd7608d60344b13fe4bda7315429d1d9.tar.bz2 dexon-4cd79d8ddd7608d60344b13fe4bda7315429d1d9.tar.lz dexon-4cd79d8ddd7608d60344b13fe4bda7315429d1d9.tar.xz dexon-4cd79d8ddd7608d60344b13fe4bda7315429d1d9.tar.zst dexon-4cd79d8ddd7608d60344b13fe4bda7315429d1d9.zip |
Refactored block & Transaction
* Includes new rlp decoder
Diffstat (limited to 'eth')
-rw-r--r-- | eth/backend.go | 2 | ||||
-rw-r--r-- | eth/protocol.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/eth/backend.go b/eth/backend.go index 0aad6a514..383cda46f 100644 --- a/eth/backend.go +++ b/eth/backend.go @@ -235,7 +235,7 @@ func (self *Ethereum) blockBroadcastLoop() { // automatically stops if unsubscribe for obj := range self.txSub.Chan() { event := obj.(core.NewMinedBlockEvent) - self.server.Broadcast("eth", NewBlockMsg, event.Block.Value().Val) + self.server.Broadcast("eth", NewBlockMsg, event.Block.RlpData()) } } diff --git a/eth/protocol.go b/eth/protocol.go index 3b6f95d44..963d41794 100644 --- a/eth/protocol.go +++ b/eth/protocol.go @@ -172,7 +172,7 @@ func (self *ethProtocol) handle() error { } block := self.chainManager.GetBlock(hash) if block != nil { - blocks = append(blocks, block.Value().Raw()) + blocks = append(blocks, block.RlpData()) } } return self.rw.EncodeMsg(BlocksMsg, blocks...) |