Skip to content

Commit 1d82f92

Browse files
authored
[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
1 parent f0c67c5 commit 1d82f92

File tree

1 file changed

+3
-1
lines changed
  • governance/xc_admin/packages/xc_admin_common/src

1 file changed

+3
-1
lines changed

governance/xc_admin/packages/xc_admin_common/src/propose.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import { WORMHOLE_ADDRESS } from "./wormhole";
2828

2929
export const MAX_EXECUTOR_PAYLOAD_SIZE = PACKET_DATA_SIZE - 687; // Bigger payloads won't fit in one addInstruction call when adding to the proposal
3030
export const MAX_INSTRUCTIONS_PER_PROPOSAL = 256 - 1;
31-
export const MAX_NUMBER_OF_RETRIES = 5;
31+
export const MAX_NUMBER_OF_RETRIES = 10;
3232

3333
type SquadInstruction = {
3434
instruction: TransactionInstruction;
@@ -407,6 +407,8 @@ export class MultisigVault {
407407
) {
408408
// If blockhash has expired, we need to fetch a new one
409409
needToFetchBlockhash = true;
410+
} else {
411+
await new Promise((r) => setTimeout(r, 3000));
410412
}
411413
console.log(e);
412414
numberOfRetries += 1;

0 commit comments

Comments
 (0)