Skip to content

Commit

Permalink
7311: Use CancellationException instead of InterruptedException in Pi…
Browse files Browse the repository at this point in the history
…votBlockConfirmer

Signed-off-by: Matilda Clerke <[email protected]>
  • Loading branch information
Matilda-Clerke committed Nov 25, 2024
1 parent 30c2c39 commit c925e6b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ private CompletableFuture<BlockHeader> executePivotQueryWithPeerTaskSystem(
do {
if (isCancelled.get()) {
return CompletableFuture.failedFuture(
new InterruptedException("Pivot block confirmation has been cancelled"));
new CancellationException("Pivot block confirmation has been cancelled"));
}
maybeEthPeer =
ethContext
Expand Down

0 comments on commit c925e6b

Please sign in to comment.