bincode::serialized_sized requires constructing a temporary object and it is slow. Silently changing serialized size of these structs can also be a backward incompatible change. This commit instead hard-codes serialized size of VoteState, Feature and Nonce, and defines the functions as const. Added tests verify hard-coded values. |
||
---|---|---|
.. | ||
src | ||
tests | ||
.gitignore | ||
Cargo.toml | ||
README.md | ||
build.rs | ||
package.json |
README.md
Solana Program
Use the Solana Program Crate to write on-chain programs in Rust. If writing client-side applications, use the Solana SDK Crate instead.
More information about Solana is available in the Solana documentation.
Helloworld and the Solana Program Library provide examples of how to use this crate.
Still have questions? Ask us on Discord