aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/responses.go
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/responses.go
parent2efb89d5440a9e43bec75b5f59032a0ff0cdc3cc (diff)
downloaddexon-14c14fd61f72bfa8c1494fa799a4f2e2eb14f4c1.tar.gz
dexon-14c14fd61f72bfa8c1494fa799a4f2e2eb14f4c1.tar.zst
dexon-14c14fd61f72bfa8c1494fa799a4f2e2eb14f4c1.zip
Output empty block as nil
Diffstat (limited to 'rpc/responses.go')
-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)