aboutsummaryrefslogtreecommitdiffstats
path: root/rpc
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2015-06-24 07:35:39 +0800
committerJeffrey Wilcke <geffobscura@gmail.com>2015-06-30 00:51:47 +0800
commit7098ec691c349f9b4473756e4ccaf97d46956da3 (patch)
tree77735a78b8d1698e3c3ec366c340fa88c7b5d164 /rpc
parente0e5f747765cec7050dd5ea4eed896e73ef0ab1f (diff)
downloadgo-tangerine-7098ec691c349f9b4473756e4ccaf97d46956da3.tar.gz
go-tangerine-7098ec691c349f9b4473756e4ccaf97d46956da3.tar.zst
go-tangerine-7098ec691c349f9b4473756e4ccaf97d46956da3.zip
rpc: unmask pending block fields
This pleases the RPC tests.
Diffstat (limited to 'rpc')
-rw-r--r--rpc/api/eth.go8
1 files changed, 0 insertions, 8 deletions
diff --git a/rpc/api/eth.go b/rpc/api/eth.go
index 0dff138c6..962c8d0f9 100644
--- a/rpc/api/eth.go
+++ b/rpc/api/eth.go
@@ -348,14 +348,6 @@ func (self *ethApi) GetBlockByNumber(req *shared.Request) (interface{}, error) {
block := self.xeth.EthBlockByNumber(args.BlockNumber)
br := NewBlockRes(block, args.IncludeTxs)
- // If request was for "pending", nil nonsensical fields
- if args.BlockNumber == -2 {
- br.BlockHash = nil
- br.BlockNumber = nil
- br.Miner = nil
- br.Nonce = nil
- br.LogsBloom = nil
- }
return br, nil
}