diff options
author | obscuren <geffobscura@gmail.com> | 2014-09-25 02:40:40 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-09-25 02:40:40 +0800 |
commit | 1118aaf840a6f6b4dd6b137f39ab895a0cbd5a56 (patch) | |
tree | ae9b4ddf48556081ff4d3d3328dbc4227f4aa256 /ethpipe | |
parent | 544b7fba7f2e826bc7c4eef016082b266d17e5f6 (diff) | |
download | go-tangerine-1118aaf840a6f6b4dd6b137f39ab895a0cbd5a56.tar.gz go-tangerine-1118aaf840a6f6b4dd6b137f39ab895a0cbd5a56.tar.zst go-tangerine-1118aaf840a6f6b4dd6b137f39ab895a0cbd5a56.zip |
Temp work around
Diffstat (limited to 'ethpipe')
-rw-r--r-- | ethpipe/js_types.go | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/ethpipe/js_types.go b/ethpipe/js_types.go index 8d2805f3d..ccd585cf0 100644 --- a/ethpipe/js_types.go +++ b/ethpipe/js_types.go @@ -36,13 +36,6 @@ func NewJSBlock(block *ethchain.Block) *JSBlock { ptxs = append(ptxs, *NewJSTx(tx)) } - /* - txJson, err := json.Marshal(ptxs) - if err != nil { - return nil - } - return &JSBlock{ref: block, Size: block.Size().String(), Number: int(block.Number.Uint64()), GasUsed: block.GasUsed.String(), GasLimit: block.GasLimit.String(), Hash: ethutil.Bytes2Hex(block.Hash()), Transactions: string(txJson), Time: block.Time, Coinbase: ethutil.Bytes2Hex(block.Coinbase)} - */ list := ethutil.NewList(ptxs) return &JSBlock{ref: block, Size: block.Size().String(), Number: int(block.Number.Uint64()), GasUsed: block.GasUsed.String(), GasLimit: block.GasLimit.String(), Hash: ethutil.Bytes2Hex(block.Hash()), Transactions: list, Time: block.Time, Coinbase: ethutil.Bytes2Hex(block.Coinbase)} |