From 1d82f92d80598e689f4130983d06b12412b83427 Mon Sep 17 00:00:00 2001 From: guibescos <59208140+guibescos@users.noreply.github.com> Date: Wed, 13 Dec 2023 22:32:01 +0700 Subject: [PATCH] [xc-admin] Add activate button for drafts (#1183) * add proposals * Revert * rename * Add waiting before retrying * Increase retries, add time between retries * Bump retries to 10 * Do it * Update --- governance/xc_admin/packages/xc_admin_common/src/propose.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/governance/xc_admin/packages/xc_admin_common/src/propose.ts b/governance/xc_admin/packages/xc_admin_common/src/propose.ts index 4e93542f..718c6511 100644 --- a/governance/xc_admin/packages/xc_admin_common/src/propose.ts +++ b/governance/xc_admin/packages/xc_admin_common/src/propose.ts @@ -28,7 +28,7 @@ import { WORMHOLE_ADDRESS } from "./wormhole"; export const MAX_EXECUTOR_PAYLOAD_SIZE = PACKET_DATA_SIZE - 687; // Bigger payloads won't fit in one addInstruction call when adding to the proposal export const MAX_INSTRUCTIONS_PER_PROPOSAL = 256 - 1; -export const MAX_NUMBER_OF_RETRIES = 5; +export const MAX_NUMBER_OF_RETRIES = 10; type SquadInstruction = { instruction: TransactionInstruction; @@ -407,6 +407,8 @@ export class MultisigVault { ) { // If blockhash has expired, we need to fetch a new one needToFetchBlockhash = true; + } else { + await new Promise((r) => setTimeout(r, 3000)); } console.log(e); numberOfRetries += 1;