Skip to content

Commit

Permalink
switchboard cranker log sim logs on low cu estimates
Browse files Browse the repository at this point in the history
  • Loading branch information
wphan committed Nov 21, 2024
1 parent a95ad27 commit 0f4acba
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/bots/switchboardCranker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0f4acba

Please sign in to comment.