-
Notifications
You must be signed in to change notification settings - Fork 202
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
[solana-receiver-cli] Add logic to receive VAAs with the new Wormhole receiver #1184
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 2 Ignored Deployments
|
a29a3b0
to
ca5a895
Compare
@@ -25,6 +25,7 @@ byteorder = "1.4.3" | |||
serde = "1.0.152" | |||
wormhole-sdk = { git = "https://github.com/wormhole-foundation/wormhole", tag = "v2.17.1" } | |||
serde_wormhole = { git = "https://github.com/wormhole-foundation/wormhole", tag = "v2.17.1"} | |||
wormhole-anchor-sdk = { version = "0.1.0-alpha.2" , default-features = 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.
Get rid of this dependency
// because the wormhole_solana crate does uses an older versions of the dependencies. | ||
// This can be removed once the GuardianSet is added to the wormhole_anchor_sdk | ||
#[derive(Default, AnchorSerialize, AnchorDeserialize, Clone, PartialEq, Eq)] | ||
pub struct GuardianSet { |
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.
Cleanup this duplicated struct
let guardian_set = GuardianSet::key(&wormhole, header.guardian_set_index); | ||
|
||
let request_compute_units_instruction: Instruction = | ||
ComputeBudgetInstruction::set_compute_unit_limit(400_000); |
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.
The compute units here is quite a bummer and increases the size of the payload, but needed with 13 signatures
This PR essentially adds
process_write_encoded_vaa
to the CLI. This is the way to post a vaa in the more efficient Wormhole rewrite for Solana.