Output empty block as nil

pull/619/head
Taylor Gerring 10 years ago
parent 2efb89d544
commit 14c14fd61f
  1. 2
      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)

Loading…
Cancel
Save