leapdao / bridge-ui

dApp for interacting with LeapDAO chain
https://testnet.leapdao.org
GNU General Public License v3.0
11 stars 5 forks source link

feat(status): show validator heartbeats per period #265

Closed troggy closed 4 years ago

troggy commented 4 years ago

Please remember the Contributing Guidelines :heart:

What does this PR do?

For each of the validator slot, get the history of the heartbeat tx and show which periods are "heartbeated" and which are not.

image

Recommendations for testing

  1. Run local network (yarn start in leap-sandbox)
  2. Run bridge ui for local network (yarn start)
  3. Push local network to the next period. If you push fast enough heartbeat will be missed.

Alternatively

  1. Run root local network (yarn start --onlyRoot in leap-sandbox)
  2. Setup a validator (use setValidator from leap-guardian)
  3. Push few periods ("heartbeated")
  4. stop the node
  5. disable heartbeat in the network config (e.g. remove the heartbeat.color)
  6. run the node again
  7. push few periods (not heartbeated)
  8. etc mix and improvise

Links to relevant issues or information

Closes #259

troggy commented 4 years ago

@sunify @MaxStalker need ruthless review for this (probably not great) mobx-lasagna. 100 DAI reviewer share

MaxStalker commented 4 years ago

@troggy I gave it a quick glance today. On the surface - looks quite good :) Will give more in-depth check in the morning.