[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
This commit is contained in:
guibescos 2023-12-13 22:32:01 +07:00 committed by GitHub
parent f0c67c5996
commit 1d82f92d80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -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;