Skip to content

Commit

Permalink
Drop sending the initial chain
Browse files Browse the repository at this point in the history
The initial chain is known and therefore doesn’t need to be
communicated. Also, it is likely that right after the initial
intersection finding the chain has to be partially revised, making it
even less useful to send the initial chain.
  • Loading branch information
jeltsch committed Nov 26, 2023
1 parent 1001135 commit 64d3db9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Ouroboros-Mini_Protocols-Chain_Sync.thy
Original file line number Diff line number Diff line change
Expand Up @@ -116,19 +116,19 @@ corec client_main_loop where
client_main_loop \<psi> \<kappa> C u ChainUpdate
) |
ChainUpdate \<Rightarrow>
u \<leftarrow> C;
let continue_with_new_chain = \<lambda>C'. u \<leftarrow> C'; client_main_loop \<psi> \<kappa> C' u \<phi> in
\<up> Cont RequestNext;
\<down> M. (partial_case M of
Cont (RollForward i) \<Rightarrow>
client_main_loop \<psi> \<kappa> (C @ [i]) u \<phi> |
continue_with_new_chain (C @ [i]) |
Cont (RollBackward q) \<Rightarrow>
client_main_loop \<psi> \<kappa> (roll_back \<psi> C q) u \<phi> |
continue_with_new_chain (roll_back \<psi> C q) |
Cont AwaitReply \<Rightarrow>
\<down> M. (partial_case M of
Cont (RollForward i) \<Rightarrow>
client_main_loop \<psi> \<kappa> (C @ [i]) u \<phi> |
continue_with_new_chain (C @ [i]) |
Cont (RollBackward q) \<Rightarrow>
client_main_loop \<psi> \<kappa> (roll_back \<psi> C q) u \<phi>
continue_with_new_chain (roll_back \<psi> C q)
)
)
)"
Expand Down

0 comments on commit 64d3db9

Please sign in to comment.