Skip to content

Commit

Permalink
add notify on slack in challenger
Browse files Browse the repository at this point in the history
  • Loading branch information
JSHan94 committed Dec 18, 2023
1 parent e7d7d5c commit 23d6562
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bots/src/worker/challenger/challenger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import {
import MonitorHelper from 'worker/bridgeExecutor/MonitorHelper';
import winston from 'winston';
import { TxWallet, WalletType, getWallet, initWallet } from 'lib/wallet';
import { buildChallengerNotification, notifySlack } from 'lib/slack';

const THRESHOLD_MISS_INTERVAL = 5;

Expand Down Expand Up @@ -309,7 +310,7 @@ export class Challenger {
await this.deleteOutputProposal(outputIndex);
}

logger.info(`output index ${outputIndex} is deleted, reason: ${reason}`);
await notifySlack(buildChallengerNotification(challengedOutput))
process.exit();
}
}

0 comments on commit 23d6562

Please sign in to comment.