good morning!!!!

Skip to content
Snippets Groups Projects
Unverified Commit c7a014b7 authored by Alex Sharov's avatar Alex Sharov Committed by GitHub
Browse files

RPC: don't save nil's to blocksLRU (#2937)

parent f96a5916
No related branches found
No related tags found
Loading
......@@ -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)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment