wormhole/solana/bridge
Reisen 1cc90e54db Deserialize only the discriminant in the entrypoint.
It would seem that Borsh, when deserializing an enum will consume a
large amount of stack space proportional to the number of discriminants.
This causes the entrypoint to trigger stack frame access violations
during the initial deserialization.

This change uses an enum represented by a u8 instead, and removes the
association between the discriminant and the data. Deserializing the
associated data is now pushed down to within the entrypoint match arms
instead.

Change-Id: I2dcb466bf7820b3344e175ad92988bb89f30cb15
2021-07-20 11:11:28 +00:00
..
agent Add commitment level to VAAs 2021-07-19 07:11:45 +00:00
client Add commitment level to VAAs 2021-07-19 07:11:45 +00:00
program Deserialize only the discriminant in the entrypoint. 2021-07-20 11:11:28 +00:00
Cargo.lock Generate Keypairs for guardians during test. 2021-07-01 09:35:03 +00:00
Cargo.toml Restructure workspace 2021-06-21 10:24:52 +02:00
rustfmt.toml Restructure workspace 2021-06-21 10:24:52 +02:00