Skip to content

Commit

Permalink
Fix reqSn in figure 10, we ar requesting with tx ids
Browse files Browse the repository at this point in the history
  • Loading branch information
ch1bo authored and v0d1ch committed May 7, 2024
1 parent ec7d0ac commit 03c281a
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions spec/fig_offchain_prot.tex
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@
$\hatmT \gets \hatmT \cup \{\tx\}$ \;
% issue snapshot if we are leader
\If{$\hats = \bars \land \hpLdr(\bars + 1) = i$}{
\Multi{} $(\hpRS,\bars+1,\hatmT, \textcolor{red}{\mathcal{U}_{\omega}})$ \;
$\textcolor{blue}{\mT^{\#}_{req} \gets \{ \hash(\tx) ~ | ~ \forall tx \in \hatmT \}}$ \;
\Multi{} $(\hpRS,\bars+1, \textcolor{blue}{\mT^{\#}_{req}}, \textcolor{red}{\mathcal{U}_{\omega}})$ \;
}
}
}
Expand All @@ -90,6 +91,7 @@
%%% DECOMMIT
\On{$(\mathtt{decommit},\tx)$ from client}{
\textcolor{red}{
% TODO: check U_\omega is bottom to not have multiple in-flight?
\Req{$\barmU \applytx \tx \not= \bot$} \;
\Multi{} $(\mathtt{reqDec},\tx)$%
}
Expand All @@ -104,7 +106,8 @@
$\mathcal{U}_\omega \gets \barmU \applytx \tx$ \;
% issue snapshot if we are leader
\If{$\hats = \bars \land \hpLdr(\bars + 1) = i$}{
\Multi{} $(\hpRS,\bars+1,\hatmT, \mathcal{U}_{\omega})$ \;
$\textcolor{blue}{\mT^{\#}_{req} \gets \{ \hash(\tx) ~ | ~ \forall tx \in \hatmT \}}$ \;
\Multi{} $(\hpRS,\bars+1,\mT^{\#}_{req}, \mathcal{U}_{\omega})$ \;
}
}
}
Expand Down Expand Up @@ -186,7 +189,8 @@
% issue snapshot if we are leader
\If{$\hpLdr(s+1) = i \land \hatmT \neq \emptyset$}{
% TODO: wasteful as we re-request U_ω?
\Multi{} $(\hpRS,s+1,\hatmT, \textcolor{red}{\mathcal{U}_{\omega}})$ \;
$\textcolor{blue}{\mT^{\#}_{req} \gets \{ \hash(\tx) ~ | ~ \forall tx \in \hatmT \}}$ \;
\Multi{} $(\hpRS,s+1, \textcolor{blue}{\mT^{\#}_{req}}, \textcolor{red}{\mathcal{U}_{\omega}})$ \;
}
}
}
Expand Down

0 comments on commit 03c281a

Please sign in to comment.