Skip to content

Commit

Permalink
fix other way
Browse files Browse the repository at this point in the history
  • Loading branch information
marcindsobczak committed Oct 28, 2024
1 parent 0f31fec commit ff59034
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public class UnsafePivotUpdator(
await TryGetFromPeers(blockNumber, cancellationToken, static async (peer, number, token) =>
{
using IOwnedReadOnlyList<BlockHeader>? x = await peer.GetBlockHeaders(number, 1, 0, token);
return x?[0] ?? null;
return x?.Count == 1 ? x[0] : null;
});

private Hash256? TryGetPotentialPivotBlockNumberFromBlockCache(long potentialPivotBlockNumber)
Expand Down

0 comments on commit ff59034

Please sign in to comment.