From 1118aaf840a6f6b4dd6b137f39ab895a0cbd5a56 Mon Sep 17 00:00:00 2001 From: obscuren Date: Wed, 24 Sep 2014 20:40:40 +0200 Subject: Temp work around --- ethpipe/js_types.go | 7 ------- 1 file changed, 7 deletions(-) (limited to 'ethpipe') 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)} -- cgit v1.2.3