diff --git a/cmd/rpcdaemon/commands/eth_api.go b/cmd/rpcdaemon/commands/eth_api.go index 07ecbb824..6647b05e8 100644 --- a/cmd/rpcdaemon/commands/eth_api.go +++ b/cmd/rpcdaemon/commands/eth_api.go @@ -163,7 +163,9 @@ func (api *BaseAPI) blockWithSenders(tx kv.Tx, hash common.Hash, number uint64) if err != nil { return nil, err } - + if block == nil { // don't save nil's to cache + return nil, nil + } if api.blocksLRU != nil { api.blocksLRU.Add(hash, block) }