mirror of
https://github.com/status-im/op-geth.git
synced 2025-02-10 13:56:50 +00:00
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…
x
Reference in New Issue
Block a user