From 14c14fd61f72bfa8c1494fa799a4f2e2eb14f4c1 Mon Sep 17 00:00:00 2001 From: Taylor Gerring Date: Thu, 2 Apr 2015 13:05:13 +0200 Subject: [PATCH] Output empty block as nil --- rpc/responses.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)