-
Notifications
You must be signed in to change notification settings - Fork 302
refactor(governance/xc_admin): add more logs on relayer #2324
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
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.
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
3 Skipped Deployments
|
| ComputeBudgetProgram.setComputeUnitLimit({ units: 1000000 }), | ||
| ]) | ||
| .rpc({ skipPreflight: true }); | ||
| .rpc({ skipPreflight: false }); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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 } |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unused imports
There was a problem hiding this 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
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.