voter-stake-registry/programs/voter-stake-registry/src
Christian Kamm decdd1230c Address unaligned references, add padding
- Make Registrar zero-copy. While it was using borsh for serialization,
  the array of voting mint configs couldn't be serialized without
  unaligned references.
- Reorganize all zero_copy fields such that switching to repr(C) would
  not make a difference. (just for safety in case that happens)
- Add static asserts on the sizes of all account structs, so any changes
  are visible very early.
- Add padding to structs that didn't have it yet.
2021-12-09 11:59:14 +01:00
..
instructions Address unaligned references, add padding 2021-12-09 11:59:14 +01:00
state Address unaligned references, add padding 2021-12-09 11:59:14 +01:00
error.rs Configurable options for vote weight scaling factors (#7) 2021-12-09 11:58:15 +01:00
lib.rs Address unaligned references, add padding 2021-12-09 11:59:14 +01:00