aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/api/eth.go
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/api/eth.go
parente0e5f747765cec7050dd5ea4eed896e73ef0ab1f (diff)
downloaddexon-7098ec691c349f9b4473756e4ccaf97d46956da3.tar
dexon-7098ec691c349f9b4473756e4ccaf97d46956da3.tar.gz
dexon-7098ec691c349f9b4473756e4ccaf97d46956da3.tar.bz2
dexon-7098ec691c349f9b4473756e4ccaf97d46956da3.tar.lz
dexon-7098ec691c349f9b4473756e4ccaf97d46956da3.tar.xz
dexon-7098ec691c349f9b4473756e4ccaf97d46956da3.tar.zst
dexon-7098ec691c349f9b4473756e4ccaf97d46956da3.zip
rpc: unmask pending block fields
This pleases the RPC tests.
Diffstat (limited to 'rpc/api/eth.go')
-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
}