github.com/aakash4dev/cometbft@v0.38.2/spec/light-client/verification/MC5_5_faulty_peer_two_thirds_faulty.tla (about) 1 ----------------- MODULE MC5_5_faulty_peer_two_thirds_faulty --------------------- 2 3 AllNodes == {"n1", "n2", "n3", "n4", "n5"} 4 TRUSTED_HEIGHT == 1 5 TARGET_HEIGHT == 5 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 FAULTY_RATIO == <<2, 3>> \* < 2 / 3 faulty validators 11 12 VARIABLES 13 state, nextHeight, fetchedLightBlocks, lightBlockStatus, latestVerified, 14 nprobes, 15 localClock, 16 refClock, blockchain, Faulty 17 18 (* the light client previous state components, used for monitoring *) 19 VARIABLES 20 prevVerified, 21 prevCurrent, 22 prevLocalClock, 23 prevVerdict 24 25 INSTANCE Lightclient_003_draft 26 ============================================================================