Implement locktower voting (#3251)

* locktower components and tests

* integrate locktower into replay stage

* track locktower duration

* make sure threshold is checked after simulating the vote

* check vote lockouts using the VoteState program

* duplicate vote test

* epoch stakes

* disable impossible to verify tests
This commit is contained in:
anatoly yakovenko
2019-03-18 12:12:33 -07:00
committed by GitHub
parent cedff2fca1
commit 61a4b998fa
7 changed files with 735 additions and 54 deletions

View File

@@ -58,7 +58,7 @@ fn node_staked_accounts(bank: &Bank) -> impl Iterator<Item = (Pubkey, u64, Accou
})
}
fn node_staked_accounts_at_epoch(
pub fn node_staked_accounts_at_epoch(
bank: &Bank,
epoch_height: u64,
) -> Option<impl Iterator<Item = (&Pubkey, u64, &Account)>> {