mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-03-06 19:35:04 +00:00
Output empty block as nil
This commit is contained in:
parent
2efb89d544
commit
14c14fd61f
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Reference in a new issue