have banks save vote_state by epoch to support stable leader schedules (#3019)

have banks save vote_state by epoch to support stable leader schedules
This commit is contained in:
Rob Walker
2019-03-01 11:54:28 -08:00
committed by GitHub
parent 46fb0b1b94
commit 38273427ad
2 changed files with 94 additions and 2 deletions

View File

@ -102,7 +102,7 @@ impl VoteInstruction {
}
}
#[derive(Debug, Default, Serialize, Deserialize, PartialEq, Eq)]
#[derive(Debug, Default, Serialize, Deserialize, PartialEq, Eq, Clone)]
pub struct VoteState {
pub votes: VecDeque<Lockout>,
pub delegate_id: Pubkey,