Lunie: Update the validators when they change

Created on 9 Jul 2018  Â·  8Comments  Â·  Source: luniehq/lunie

UI Version: 0.7.1

Description:

Currently the validators are loaded once via the LCD. It would be nice to update them every time they change so the user sees the live validator set.

low priority refactor

Most helpful comment

  • [x] Listen to NewBlock Event
  • [x] Get Validator Candidates
  • [x] Get Validator Set
  • [x] Compare validator sets
  • [x] Update if ≠

All 8 comments

absolutely. this will need to be dynamic! we also have to display validator-candidates!

@faboweb what about listening to EventNewBlock/EventNewBlockHeader and compare the stored validator set with the one of the latest block ?

Sure. We can migrate to the new event later.

  • [x] Listen to NewBlock Event
  • [x] Get Validator Candidates
  • [x] Get Validator Set
  • [x] Compare validator sets
  • [x] Update if ≠

New event for Validator Updates #tendermint/2161

The original proposal is already implemented with the maybeUpdateValidators and setLastHeader functions that are called when you subscribe to RPC. I will leave this issue open until #tendermint/2161 gets merged and included into the SDK

Our current approach works

Was this page helpful?
0 / 5 - 0 ratings