Fixes crash in blocktimefinder.

This commit is contained in:
benbierens 2024-05-09 08:57:19 +02:00
parent 0ec43a9325
commit c01f9dbb21
No known key found for this signature in database
GPG Key ID: 877D2C2E09A22F3A
1 changed files with 1 additions and 0 deletions

View File

@ -20,6 +20,7 @@ namespace NethereumWorkflow.BlockUtils
public BlockTimeEntry Get(ulong blockNumber) public BlockTimeEntry Get(ulong blockNumber)
{ {
bounds.Initialize();
var b = cache.Get(blockNumber); var b = cache.Get(blockNumber);
if (b != null) return b; if (b != null) return b;
return GetBlock(blockNumber); return GetBlock(blockNumber);