Skip to content

Conversation

@ali-behjati
Copy link
Collaborator

If the relayer fails for whatever reason it is hard to debug what is going on. This change adds more logs to see the details of the proposals which is quite helpful in debugging the issues.

If the relayer fails for whatever reason it is hard to debug what
is going on. This change adds more logs to see the details of the
proposals which is quite helpful in debugging the issues.
@ali-behjati ali-behjati requested a review from guibescos February 4, 2025 14:35
@vercel
Copy link

vercel bot commented Feb 4, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
api-reference ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 7, 2025 9:36am
proposals ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 7, 2025 9:36am
staking ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 7, 2025 9:36am
3 Skipped Deployments
Name Status Preview Comments Updated (UTC)
component-library ⬜️ Ignored (Inspect) Visit Preview Feb 7, 2025 9:36am
entropy-debugger ⬜️ Ignored (Inspect) Visit Preview Feb 7, 2025 9:36am
insights ⬜️ Ignored (Inspect) Visit Preview Feb 7, 2025 9:36am

ComputeBudgetProgram.setComputeUnitLimit({ units: 1000000 }),
])
.rpc({ skipPreflight: true });
.rpc({ skipPreflight: false });
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we get better logs with simulation. Why was it true before?

Copy link
Contributor

@guibescos guibescos Feb 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I normally got the logs from explorer, but it might be nicer to get them from Grafana (like this would enable)

provider.wallet.publicKey,
Buffer.from(response.vaaBytes, "base64"),
{ commitment: COMMITMENT }
{ commitment: COMMITMENT, maxRetries: 10 }
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I couldn't see what the default is. It was often failing at this step.

Copy link
Contributor

@guibescos guibescos Feb 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

meeeh, people in Solana recommend 0 retries at this level
https://github.com/rpcpool/optimized-txs-examples/blob/main/selfSolTransfer.mjs#L116
instead if you'd like to retry you should put postVaaSolana inside a for loop

Connection,
Keypair,
PublicKey,
SystemProgram,
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unused imports

Copy link
Contributor

@guibescos guibescos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think maxRetries should be used

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants