b4491ff4ba
For backward compatibility, we can only serialize and deserialize Stakes<Delegation>. However Bank caches Stakes<StakeAccount>. This type mismatch incurs a conversion cost at epoch boundary when updating EpochStakes. This commit adds StakesEnum which allows EpochStakes to include either a Stakes<StakeAccount> or Stakes<Delegation> and so bypass the conversion cost between the two at the epoch boundary. |
||
---|---|---|
.. | ||
benches | ||
src | ||
store-tool | ||
tests | ||
.gitignore | ||
Cargo.toml | ||
build.rs |