solana/programs/vote/src
behzad nouri 16222553b8
defines const fn for serialized size of VoteState, Feature and Nonce (#24435)
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.
2022-04-19 13:10:14 +00:00
..
vote_state defines const fn for serialized size of VoteState, Feature and Nonce (#24435) 2022-04-19 13:10:14 +00:00
authorized_voters.rs
lib.rs
vote_error.rs
vote_instruction.rs
vote_processor.rs
vote_transaction.rs