From 0f4acba99c2bc412eaaac8d975631e768274c773 Mon Sep 17 00:00:00 2001 From: wphan Date: Thu, 21 Nov 2024 12:21:36 -0500 Subject: [PATCH] switchboard cranker log sim logs on low cu estimates --- src/bots/switchboardCranker.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/bots/switchboardCranker.ts b/src/bots/switchboardCranker.ts index 9e7ccdb2..f81fefd5 100644 --- a/src/bots/switchboardCranker.ts +++ b/src/bots/switchboardCranker.ts @@ -149,6 +149,14 @@ export class SwitchboardCrankerBot implements Bot { recentBlockhash: await this.getBlockhashForTx(), }); + if (simResult.cuEstimate < 100000) { + logger.info( + `cuEst: ${simResult.cuEstimate}, logs: ${JSON.stringify( + simResult.simTxLogs + )}` + ); + } + if (this.globalConfig.useJito) { simResult.tx.sign([ // @ts-ignore;