Browse Source

More log and fix OFFSET bug (#538)

guibescos 2 năm trước cách đây
mục cha
commit
94e97e6f14

+ 1 - 0
governance/xc-admin/packages/crank-executor/src/index.ts

@@ -63,6 +63,7 @@ async function run() {
 
   const proposals = await getProposals(squad, VAULT, undefined, "executeReady");
   for (const proposal of proposals) {
+    console.log("Trying to execute: ", proposal.publicKey.toBase58());
     // If we have previously cancelled because the proposal was failing, don't attempt
     if (proposal.cancelled.length == 0) {
       for (

+ 1 - 1
governance/xc-admin/packages/crank-pythnet-relayer/src/index.ts

@@ -42,7 +42,7 @@ const EXECUTOR_KEY_SEED = "EXECUTOR_KEY";
 const CLUSTER: PythCluster = envOrErr("CLUSTER") as PythCluster;
 const COMMITMENT: Commitment =
   (process.env.COMMITMENT as Commitment) ?? "confirmed";
-const OFFSET: number = Number(process.env.OFFSET) ?? -1;
+const OFFSET: number = Number(process.env.OFFSET ?? "-1");
 const EMITTER: PublicKey = new PublicKey(envOrErr("EMITTER"));
 const KEYPAIR: Keypair = Keypair.fromSecretKey(
   Uint8Array.from(JSON.parse(fs.readFileSync(envOrErr("WALLET"), "ascii")))