From 37b475da428f5d3af619751edadc5038f76d8b3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20D=C3=ADaz?= Date: Wed, 22 Nov 2023 11:55:29 -0300 Subject: [PATCH] Drop unnecessary comments --- src/Ouroboros-Mini_Protocols-Chain_Sync.thy | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Ouroboros-Mini_Protocols-Chain_Sync.thy b/src/Ouroboros-Mini_Protocols-Chain_Sync.thy index 29e2ecc..0cdf319 100644 --- a/src/Ouroboros-Mini_Protocols-Chain_Sync.thy +++ b/src/Ouroboros-Mini_Protocols-Chain_Sync.thy @@ -177,17 +177,17 @@ corec server_program where Cont RequestNext \ u \ C'. ( - if C' = C then \ \no changes, continue with C\ + if C' = C then if b then \ Cont (RollBackward (\ (C ! k))); server_program \ u k False C \ else if Suc k < length C then \ Cont (RollForward (C ! Suc k)); server_program \ u (Suc k) b C \ - else \ \client caught up\ + else \ Cont AwaitReply; server_program \ u k b C ClientCatchUp - else \ \changes found, switch to C'\ + else let (M', k') = chain_update_reaction \ k C C' in \ Cont M'; server_program \ u k' b C' \ @@ -196,9 +196,9 @@ corec server_program where ClientCatchUp \ u \ C'. ( - if C' = C then \ \keep waiting for updates\ + if C' = C then server_program \ u k b C \ - else \ \changes found, switch to C'\ + else let (M', k') = chain_update_reaction \ k C C' in \ Cont M'; server_program \ u k' b C' ClientLagging