Skip to content

Commit

Permalink
add exception handling
Browse files Browse the repository at this point in the history
  • Loading branch information
LukaszRozmej authored and benaadams committed May 4, 2023
1 parent 345d2d2 commit 343966f
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,15 @@ public void GetInfosForBatch(BlockInfo?[] blockInfos)
for (int index = 0; index < toSent.Count; index++)
{
(int collected, long currentNumber) sent = toSent[index];
blockInfos[sent.collected] = _blockTree.FindCanonicalBlockInfo(sent.currentNumber);
try
{
blockInfos[sent.collected] = _blockTree.FindCanonicalBlockInfo(sent.currentNumber);
}
catch
{
_statuses[sent.currentNumber] = FastBlockStatus.Unknown;
throw;
}
}
}

Expand Down

0 comments on commit 343966f

Please sign in to comment.