@@ -70,10 +70,10 @@ data ValidAction : Action → LeiosState → LeiosInput → Type where
70
70
VT-Role : let open LeiosState s renaming (FFDState to ffds)
71
71
EBs' = filter (allIBRefsKnown s) $ filter (_∈ᴮ slice L slot 1 ) EBs
72
72
votes = map (vote sk-V ∘ hash) EBs'
73
- ffds' = proj₁ (send-total {ffds} {vHeader votes} {nothing})
73
+ ffds' = proj₁ (send-total {ffds} {vtHeader votes} {nothing})
74
74
in .(needsUpkeep VT-Role) →
75
75
.(canProduceV slot sk-V (stake s)) →
76
- .(ffds FFD.-⟦ FFD.Send (vHeader votes) nothing / FFD.SendRes ⟧⇀ ffds') →
76
+ .(ffds FFD.-⟦ FFD.Send (vtHeader votes) nothing / FFD.SendRes ⟧⇀ ffds') →
77
77
ValidAction (VT-Role-Action slot) s SLOT
78
78
79
79
No-IB-Role : let open LeiosState s
@@ -135,7 +135,7 @@ private variable
135
135
let open LeiosState s renaming (FFDState to ffds)
136
136
EBs' = filter (allIBRefsKnown s) $ filter (_∈ᴮ slice L slot 1 ) EBs
137
137
votes = map (vote sk-V ∘ hash) EBs'
138
- ffds' = proj₁ (send-total {ffds} {vHeader votes} {nothing})
138
+ ffds' = proj₁ (send-total {ffds} {vtHeader votes} {nothing})
139
139
in addUpkeep record s { FFDState = ffds' } VT-Role , EMPTY
140
140
⟦ No-IB-Role {s} _ _ ⟧ = addUpkeep s IB-Role , EMPTY
141
141
⟦ No-EB-Role {s} _ _ ⟧ = addUpkeep s EB-Role , EMPTY
@@ -353,7 +353,6 @@ instance
353
353
(_ / _ ∷ tr ⊣ vα) → ¬vα
354
354
$ subst (λ x → ValidAction α x i) (cong (proj₁ ∘ ⟦_⟧∗) $ Irr-ValidTrace tr vαs) vα
355
355
... | yes vα = yes $ _ / _ ∷ vαs ⊣ vα
356
-
357
356
Dec-ValidTrace {tr} .dec | inj₂ u ∷ αs
358
357
with ¿ ValidTrace αs ¿
359
358
... | no ¬vαs = no λ where (vαs ↥ _) → ¬vαs vαs
@@ -383,7 +382,7 @@ data _⇑_ : LeiosState → LeiosState → Type where
383
382
384
383
UpdateVT : ∀ {s h ffds'} →
385
384
let open LeiosState s renaming (FFDState to ffds)
386
- vt = FFD.Send (vHeader h) nothing
385
+ vt = FFD.Send (vtHeader h) nothing
387
386
in
388
387
∙ ffds FFD.-⟦ vt / FFD.SendRes ⟧⇀ ffds'
389
388
─────────────────────────────────────
@@ -446,7 +445,7 @@ ValidAction-complete {s} (Roles (VT-Role x x₁ _)) =
446
445
let open LeiosState s renaming (FFDState to ffds)
447
446
EBs' = filter (allIBRefsKnown s) $ filter (_∈ᴮ slice L slot 1 ) EBs
448
447
votes = map (vote sk-V ∘ hash) EBs'
449
- pr = proj₂ (send-total {ffds} {vHeader votes} {nothing})
448
+ pr = proj₂ (send-total {ffds} {vtHeader votes} {nothing})
450
449
in VT-Role {s} x x₁ pr
451
450
ValidAction-complete (Roles (No-IB-Role x x₁)) = No-IB-Role x x₁
452
451
ValidAction-complete (Roles (No-EB-Role x x₁)) = No-EB-Role x x₁
0 commit comments