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.

27 lines
1.3 KiB

  1. ------------------------- MODULE LCD_MC3_4_faulty ---------------------------
  2. AllNodes == {"n1", "n2", "n3"}
  3. TRUSTED_HEIGHT == 1
  4. TARGET_HEIGHT == 4
  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. IS_SECONDARY_CORRECT == TRUE
  10. FAULTY_RATIO == <<2, 3>> \* < 1 / 3 faulty validators
  11. VARIABLES
  12. blockchain, (* the reference blockchain *)
  13. localClock, (* current time in the light client *)
  14. refClock, (* current time in the reference blockchain *)
  15. Faulty, (* the set of faulty validators *)
  16. state, (* the state of the light client detector *)
  17. fetchedLightBlocks1, (* a function from heights to LightBlocks *)
  18. fetchedLightBlocks2, (* a function from heights to LightBlocks *)
  19. fetchedLightBlocks1b, (* a function from heights to LightBlocks *)
  20. commonHeight, (* the height that is trusted in CreateEvidenceForPeer *)
  21. nextHeightToTry, (* the index in CreateEvidenceForPeer *)
  22. evidences
  23. INSTANCE LCDetector_003_draft
  24. ============================================================================