github.com/vipernet-xyz/tm@v0.34.24/spec/light-client/detection/LCD_MC4_4_faulty.tla (about)

     1  ------------------------- MODULE LCD_MC4_4_faulty ---------------------------
     2  
     3  AllNodes == {"n1", "n2", "n3", "n4"}
     4  TRUSTED_HEIGHT == 1
     5  TARGET_HEIGHT == 4
     6  TRUSTING_PERIOD == 1400     \* two weeks, one day is 100 time units :-)
     7  CLOCK_DRIFT == 10       \* how much we assume the local clock is drifting
     8  REAL_CLOCK_DRIFT == 3   \* how much the local clock is actually drifting
     9  IS_PRIMARY_CORRECT == FALSE
    10  IS_SECONDARY_CORRECT == TRUE
    11  FAULTY_RATIO == <<2, 3>>    \* < 2 / 3 faulty validators
    12  
    13  VARIABLES
    14    blockchain,           (* the reference blockchain *)
    15    localClock,           (* current time in the light client *)
    16    refClock,             (* current time in the reference blockchain *)
    17    Faulty,               (* the set of faulty validators *)
    18    state,                (* the state of the light client detector *)
    19    fetchedLightBlocks1,  (* a function from heights to LightBlocks *)
    20    fetchedLightBlocks2,  (* a function from heights to LightBlocks *)
    21    fetchedLightBlocks1b, (* a function from heights to LightBlocks *)
    22    commonHeight,         (* the height that is trusted in CreateEvidenceForPeer *)
    23    nextHeightToTry,      (* the index in CreateEvidenceForPeer *)
    24    evidences
    25  
    26  INSTANCE LCDetector_003_draft
    27  ============================================================================