Skip to content

Commit

Permalink
Fix p2p check in prover-node
Browse files Browse the repository at this point in the history
  • Loading branch information
spalladino committed Dec 9, 2024
1 parent e5165e1 commit 351523c
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions yarn-project/prover-node/src/prover-node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,16 +80,11 @@ export class ProverNode implements ClaimsMonitorHandler, EpochMonitorHandler, Pr
}

public getP2P() {
// TODO(palla): Remove try/catch once #10544 lands
try {
const asP2PClient = this.coordination as P2P;
if (typeof asP2PClient.isP2PClient === 'function' && asP2PClient.isP2PClient()) {
return asP2PClient;
}
return undefined;
} catch {
return undefined;
const asP2PClient = this.coordination as P2P;
if (typeof asP2PClient.isP2PClient === 'function' && asP2PClient.isP2PClient()) {
return asP2PClient;
}
return undefined;
}

async handleClaim(proofClaim: EpochProofClaim): Promise<void> {
Expand Down

0 comments on commit 351523c

Please sign in to comment.