aboutsummaryrefslogtreecommitdiffstats
path: root/rpc
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2015-04-02 19:05:13 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2015-04-02 19:05:13 +0800
commit14c14fd61f72bfa8c1494fa799a4f2e2eb14f4c1 (patch)
tree9701a4a48df8caa9cb05c75511df5d6f74bfb104 /rpc
parent2efb89d5440a9e43bec75b5f59032a0ff0cdc3cc (diff)
downloadgo-tangerine-14c14fd61f72bfa8c1494fa799a4f2e2eb14f4c1.tar.gz
go-tangerine-14c14fd61f72bfa8c1494fa799a4f2e2eb14f4c1.tar.zst
go-tangerine-14c14fd61f72bfa8c1494fa799a4f2e2eb14f4c1.zip
Output empty block as nil
Diffstat (limited to 'rpc')
-rw-r--r--rpc/responses.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/rpc/responses.go b/rpc/responses.go
index f1dc344db..3d1687cb6 100644
--- a/rpc/responses.go
+++ b/rpc/responses.go
@@ -128,7 +128,7 @@ func NewBlockRes(block *types.Block, fullTx bool) *BlockRes {
// TODO respect fullTx flag
if block == nil {
- return &BlockRes{}
+ return nil
}
res := new(BlockRes)