You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
864 B

  1. ------------------------- MODULE MC7_5_faulty ---------------------------
  2. AllNodes == {"n1", "n2", "n3", "n4", "n5", "n6", "n7"}
  3. TRUSTED_HEIGHT == 1
  4. TARGET_HEIGHT == 5
  5. TRUSTING_PERIOD == 1400 \* two weeks, one day is 100 time units :-)
  6. CLOCK_DRIFT == 10 \* how much we assume the local clock is drifting
  7. REAL_CLOCK_DRIFT == 3 \* how much the local clock is actually drifting
  8. IS_PRIMARY_CORRECT == FALSE
  9. FAULTY_RATIO == <<1, 3>> \* < 1 / 3 faulty validators
  10. VARIABLES
  11. state, nextHeight, fetchedLightBlocks, lightBlockStatus, latestVerified,
  12. nprobes,
  13. localClock,
  14. refClock, blockchain, Faulty
  15. (* the light client previous state components, used for monitoring *)
  16. VARIABLES
  17. prevVerified,
  18. prevCurrent,
  19. prevLocalClock,
  20. prevVerdict
  21. INSTANCE Lightclient_003_draft
  22. ============================================================================