Skip to content

Commit 0538bbe

Browse files
committed
Fix broken computational EPOCH module
1 parent e0d8873 commit 0538bbe

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

src/Ledger/Conway/Specification/Epoch/Properties/Computational.agda

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,15 @@ module _ {eps : EpochState} {e : Epoch} where
5555

5656
open EpochState eps hiding (es)
5757

58+
u0 = EPOCHUpdates0.updates fut ls
59+
module u0 = EPOCH-Updates0 u0
60+
5861
prs = ⟦ u0 .utxoSt' , acnt , cs .dState , cs .pState ⟧
5962
where
6063
open LState
6164
open CertState
6265
open EPOCH-Updates0
6366
cs = ls .certState
64-
u0 = EPOCH-updates0 fut ls
6567

6668
EPOCH-total : ∃[ eps' ] _ ⊢ eps ⇀⦇ e ,EPOCH⦈ eps'
6769
EPOCH-total =
@@ -74,15 +76,15 @@ module _ {eps : EpochState} {e : Epoch} where
7476
EPOCH-state : Snapshots RatifyState PoolReapState EpochState
7577
EPOCH-state ss fut' (⟦ utxoSt'' , acnt' , dState' , pState' ⟧ᵖ) =
7678
let
77-
EPOCHUpdates es govSt' dState'' gState' _ acnt'' =
78-
EPOCH-updates fut ls dState' acnt'
79-
certState' = ⟦ dState'' , pState' , gState' ⟧ᶜˢ
79+
EPOCHUpdates dState'' acnt'' =
80+
EPOCHUpdates.updates u0 ls dState' acnt'
81+
certState' = ⟦ dState'' , pState' , u0.gState' ⟧ᶜˢ
8082
in
8183
record
8284
{ acnt = acnt''
8385
; ss = ss
84-
; ls = ⟦ utxoSt'' , govSt' , certState' ⟧ˡ
85-
; es = es
86+
; ls = ⟦ utxoSt'' , u0.govSt' , certState' ⟧ˡ
87+
; es = u0.es
8688
; fut = fut'
8789
}
8890

@@ -115,7 +117,7 @@ module _ {eps : EpochState} {e : Epoch} where
115117
fut'≡fut'' : EpochState.fut eps' ≡ EpochState.fut eps''
116118
fut'≡fut'' = RATIFIES-deterministic-≡
117119
(cong (λ x record
118-
{ stakeDistrs = mkStakeDistrs (Snapshots.mark x) _ _ _ _ _
120+
{ stakeDistrs = mkStakeDistrs (Snapshots.mark x) _ _ _ (GStateOf ls) (DStateOf ls)
119121
; currentEpoch = _
120122
; dreps = _
121123
; ccHotKeys = _

0 commit comments

Comments
 (0)