Output empty block as nil

This commit is contained in:
Taylor Gerring 2015-04-02 13:05:13 +02:00
parent 2efb89d544
commit 14c14fd61f

View File

@ -128,7 +128,7 @@ func NewBlockRes(block *types.Block, fullTx bool) *BlockRes {
// TODO respect fullTx flag // TODO respect fullTx flag
if block == nil { if block == nil {
return &BlockRes{} return nil
} }
res := new(BlockRes) res := new(BlockRes)