Output empty block as nil

This commit is contained in:
Taylor Gerring committed 2015-04-02 13:05:13 +02:00
1 parent 2efb89d544
commit 14c14fd61f
1 file changed
+1 -1
+1 -1
View File
@@ -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)