From c207f2295193c5ca598cda79032ef3e01d200970 Mon Sep 17 00:00:00 2001 From: Denis Fadeev Date: Mon, 10 Jul 2023 12:55:29 +0400 Subject: [PATCH] cctx: temporarily remove pending check --- helpers/tx.ts | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/helpers/tx.ts b/helpers/tx.ts index d8e98601..d2cb51ce 100644 --- a/helpers/tx.ts +++ b/helpers/tx.ts @@ -55,14 +55,18 @@ export const trackCCTX = (inboundTxHash: string): Promise => { 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();