Files
solana/programs
mergify[bot] e07c00710a fix rewards points (bp #10914) (#11142)
* fix rewards points (#10914)

* fix rewards points

* fixups

* * verify that we don't spend more in rewards than we've allocated for rewards
* purge f64s from calculations that could be done with integers

* test typical values

* simplify iteration over delegations some

* fixups

* Use try_from

* Add a comment for commission_split()

* Add assertion to detect inconsistent reward dist.

* Fix vote_balance_and_staked

* Don't overwrite accounts with stale copies

* Fix CI...

* Add tests for vote_balance_and_staked

* Add test for the determinism of update_rewards

* Revert "Don't overwrite accounts with stale copies"

This reverts commit 9886d085a6.

* Make stake_delegation_accounts to return hashmap

Co-authored-by: Ryo Onodera <ryoqun@gmail.com>
(cherry picked from commit 7cc2a6801b)

# Conflicts:
#	runtime/src/serde_snapshot/tests.rs

* Fix conflict

Co-authored-by: Rob Walker <rwalker@rwalker.com>
Co-authored-by: Ryo Onodera <ryoqun@gmail.com>
2020-07-21 06:35:20 +00:00
..
2020-07-15 23:55:05 +00:00
2020-07-15 23:55:05 +00:00
2020-07-15 23:55:05 +00:00
2020-07-15 23:55:05 +00:00
2020-07-15 23:55:05 +00:00
2020-07-15 23:55:05 +00:00
2020-07-15 23:55:05 +00:00
2020-07-15 23:55:05 +00:00
2020-07-15 23:55:05 +00:00
2020-07-15 23:55:05 +00:00