Output empty block as nil

This commit is contained in:
Taylor Gerring 2015-04-02 13:05:13 +02:00
parent 2efb89d544
commit 14c14fd61f
1 changed files with 1 additions and 1 deletions

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)