Commit Graph

5 Commits

Author SHA1 Message Date
Sagar Dhawan
20e4edec61 Refactor Vote Program Account setup (#2992) 2019-02-28 17:08:45 -08:00
Pankaj Garg
30bccc0c68 Fix slot index used while calculating leader schedule
- slot_leader_at() was using absolute slot number instead of index in the epoch
2019-02-28 15:41:01 -08:00
carllin
217f30f9c3 Add get_supermajority_slot() function (#2976)
* Moved supermajority functions into new module, staking_utils

* Move staking functions out of bank, and into staking_utils, change get_supermajority_slot to only use state from epoch boundary

* Move bank slot height in staked_nodes_at_slot() to be bank id
2019-02-28 13:15:25 -08:00
Michael Vines
7ccd601100 Remove incorrect file description 2019-02-27 22:36:18 -08:00
carllin
6d1b43f1b1 Make leader_schedule a utitlity module named leader_schedule_utils (#2988) 2019-02-27 14:41:46 -08:00