Skip to content

Commit

Permalink
cctx: temporarily remove pending check
Browse files Browse the repository at this point in the history
  • Loading branch information
fadeev committed Jul 10, 2023
1 parent c5a324f commit c207f22
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions helpers/tx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,18 @@ export const trackCCTX = (inboundTxHash: string): Promise<void> => {
if (status != latest_status) {
latest_status = status;
spinner.info(`Status updated to "${status}": ${status_message}\n`);
if (status === "PendingOutbound" && pendingBlocks > 100) {
const time = moment
.duration(pendingBlocks * 5, "seconds")
.humanize();
spinner.warn(
`CCTX is pending for too long (${pendingBlocks} blocks, about ${time})\n`
);
}

// Disabled until https://github.com/zeta-chain/node/issues/766 is
// fixed
//
// if (status === "PendingOutbound" && pendingBlocks > 100) {
// const time = moment
// .duration(pendingBlocks * 5, "seconds")
// .humanize();
// spinner.warn(
// `CCTX is pending for too long (${pendingBlocks} blocks, about ${time})\n`
// );
// }
spinner.start(`Checking status of the CCTX...`);
if (/^(Aborted|Reverted|OutboundMined)$/.test(status)) {
socket.close();
Expand Down

0 comments on commit c207f22

Please sign in to comment.