votes only need slots and the last bank hash (#5499)

churn

cleanup

reverse test slot hashes

test check_slots_are_valid

updates

only send the minimum bank vote difference

fixup! only send the minimum bank vote difference

some banks may not have a voting account setup

fixup! votes only need slots and the last bank hash

fixup! fixup! votes only need slots and the last bank hash

fmt

fixed compare

fixed vote

fixup! fixed vote

poke ci

filter the local votes via the last bank vote
This commit is contained in:
anatoly yakovenko
2019-09-02 12:01:09 -07:00
committed by GitHub
parent 9f354522a7
commit 475f6fe666
6 changed files with 287 additions and 131 deletions

View File

@@ -40,7 +40,7 @@ fn fill_epoch_with_votes(
vec![vote_instruction::vote(
&vote_pubkey,
&vote_pubkey,
vec![Vote::new(parent.slot() as u64, parent.hash())],
Vote::new(vec![parent.slot() as u64], parent.hash()),
)],
Some(&mint_pubkey),
);