Skip to content

Commit a626ac7

Browse files
authored
Merge pull request #17 from cardano-scaling/remove-off-chain-recover-and-decrement-checks
Remove redundant off-chain checks
2 parents 27d1777 + 4dffd47 commit a626ac7

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

src/Hydra/Protocol/Figures/offchain-protocol.tex

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -191,21 +191,16 @@
191191

192192
%%% DECREMENT
193193
\On{$(\mathtt{decrementTx}, U, v)$ from chain}{
194-
\If{$\mathsf{outputs}(\tx_{\omega}) = U$}{
195-
$\tx_{\omega} \gets \bot$ \;
196-
$\hatv \gets v$ \;
197-
}
194+
$\tx_{\omega} \gets \bot$ \;
195+
$\hatv \gets v$ \;
198196
}
199197
\vspace{12pt}
200198

201199
%%% INCREMENT
202200
\On{$(\mathtt{incrementTx}, U, v)$ from chain}{
203-
% XXX: require?
204-
\If{$U_\alpha = U$}{
205-
$\hatmL \gets \hatmL \cup U$ \;
206-
$U_\alpha \gets \emptyset$\;
207-
$\hatv \gets v$ \;
208-
}
201+
$\hatmL \gets \hatmL \cup U$ \;
202+
$U_\alpha \gets \emptyset$\;
203+
$\hatv \gets v$ \;
209204
}
210205

211206
\end{walgo}

0 commit comments

Comments
 (0)