You are viewing a single comment's thread from:

RE: Witness Essentials: Watcher (Docker & Signing-Key Support)

in #witness-category7 years ago
  • Good code, and very useful for witnesses
  • Screen captures of the running script could have been nice to see.
  • Is there a way to simulate missed blocks to test the fail-over and disabling features?

Your contribution has been evaluated according to Utopian policies and guidelines, as well as a predefined set of questions pertaining to the category.

To view those questions and the relevant answers related to your post, click here.


Need help? Write a ticket on https://support.utopian.io/.
Chat with us on Discord.
[utopian-moderator]

Sort:  

Thanks for the evaluation!

To test missed blocks, you could do something like this

if (witness.total_missed > _g.current_total_missed || true) {
      let missed_since_start = (witness.total_missed - _g.start_total_missed) + 1

https://github.com/witness-essentials/watcher/blob/master/src/index.ts#L36

Thank you for your review, @helo! Keep up the good work!