Compute finality computation in new ComputeLeaderFinalityService (#1652)

* Move finality computation into a service run from the banking stage, ComputeLeaderFinalityService

* Change last ids nth to tick height, remove separate tick height from bank
This commit is contained in:
carllin
2018-11-02 15:49:14 -07:00
committed by GitHub
parent 2c74815cc9
commit 0636399b7a
11 changed files with 330 additions and 121 deletions

View File

@@ -104,7 +104,7 @@ impl VoteProgram {
match deserialize(tx.userdata(instruction_index)) {
Ok(VoteInstruction::RegisterAccount) => {
// TODO: a single validator could register multiple "vote accounts"
// which would clutter the "accounts" structure.
// which would clutter the "accounts" structure. See github issue 1654.
accounts[1].program_id = Self::id();
let mut vote_state = VoteProgram {