Commit 14c14fd6 authored by Taylor Gerring's avatar Taylor Gerring

Output empty block as nil

parent 2efb89d5
...@@ -128,7 +128,7 @@ func NewBlockRes(block *types.Block, fullTx bool) *BlockRes { ...@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment