Output empty block as nil
This commit is contained in:
parent
2efb89d544
commit
14c14fd61f
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue