Skip to content

Commit

Permalink
fixed one bug introduced by messing around with open
Browse files Browse the repository at this point in the history
...still more to fix... maybe have to revert
  • Loading branch information
williamdemeo committed Feb 18, 2024
1 parent 8e23ad8 commit 31e8c06
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions src/Ledger/Utxo.lagda
Original file line number Diff line number Diff line change
Expand Up @@ -364,9 +364,6 @@ private variable
s s' : UTxOState
tx : Tx

open UTxOState
open UTxOEnv renaming (pparams to pp)

data _⊢_⇀⦇_,UTXO⦈_ where
\end{code}

Expand All @@ -375,16 +372,18 @@ data _⊢_⇀⦇_,UTXO⦈_ where
\begin{code}
UTXO-inductive :
let open Tx tx renaming (body to txb); open TxBody txb
open UTxOEnv Γ renaming (pparams to pp)
open UTxOState s
in
∙ txins ≢ ∅ ∙ txins ⊆ dom (s .utxo)
∙ inInterval (Γ .slot) txvldt ∙ feesOK (Γ .pp) tx (s .utxo) ≡ true
∙ consumed (Γ .pp) s txb ≡ produced (Γ .pp) s txb ∙ coin mint ≡ 0
∙ txsize ≤ maxTxSize (Γ .pp)
∙ txins ≢ ∅ ∙ txins ⊆ dom utxo
∙ inInterval slot txvldt ∙ feesOK pp tx utxo ≡ true
∙ consumed pp s txb ≡ produced pp s txb ∙ coin mint ≡ 0
∙ txsize ≤ maxTxSize pp

∙ ∀[ (_ , txout) ∈ txouts .proj₁ ]
inject (utxoEntrySize txout * minUTxOValue (Γ .pp)) ≤ᵗ getValue txout
inject (utxoEntrySize txout * minUTxOValue pp) ≤ᵗ getValue txout
∙ ∀[ (_ , txout) ∈ txouts .proj₁ ]
serSize (getValue txout) ≤ maxValSize (Γ .pp)
serSize (getValue txout) ≤ maxValSize pp
∙ ∀[ (a , _) ∈ range txouts ]
Sum.All (const ⊤) (λ a → a .BootstrapAddr.attrsSize ≤ 64) a
∙ ∀[ (a , _) ∈ range txouts ] netId a ≡ networkId
Expand Down

0 comments on commit 31e8c06

Please sign in to comment.