[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:
parent
f0c67c5996
commit
1d82f92d80
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue