Verified Commit 9f5a5211 authored by Vincent Botbol's avatar Vincent Botbol Committed by Grégoire Henry

Shell: preapply should hash instead of commit

parent 8e8fae23
Pipeline #28931843 passed with stages
in 20 minutes and 23 seconds
......@@ -241,7 +241,7 @@ let preapply ~predecessor ~timestamp ~protocol_data ~sort_operations:sort ops =
NewProto.init context shell_header >>=? fun { context ; message ; _ } ->
return (context, message)
end >>=? fun (context, message) ->
Context.commit ?message ~time:timestamp context >>= fun context ->
Context.hash ?message ~time:timestamp context >>= fun context ->
return ({ shell_header with context }, rs)
let notify_operation (State { proto = (module Proto) ; new_operation_input ; }) result =
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment