package tezos-baking-015-PtLimaPt
Tezos/Protocol: base library for `tezos-baker/accuser`
Install
Dune Dependency
Authors
Maintainers
Sources
tezos-16.0.tar.gz
sha256=ad9e08819871c75ba6f4530b125f7d157799398e4d77a1e6bfea9d91ff37ff55
sha512=c5dc4d40cc09bc6980fbbdb5c2e105bf4252cf9cfcb2b49660b0ebe4dc789f6709ec3b3bf2f87d81580d3eed9521eeb1c960f24d9b14eb0285aaba1f84d10a9b
doc/src/tezos-baking-015-PtLimaPt.mockup-simulator/faked_daemon.ml.html
Source file faked_daemon.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
module Baker = struct let run ~(cctxt : #Protocol_client_context.full) ~stop_on_event ~chain_id ~(context_index : Abstract_context_index.t) ~delegates = let chain = `Hash chain_id in let baking_configuration = let open Baking_configuration in { default_config with validation = ContextIndex context_index; state_recorder = Disabled; } in (* By default errors are simply printed but the baker won't stop because of them. This is not what we want for testing. Here we force the baker to terminate unsuccessfully if an error occurs. *) let canceler = Lwt_canceler.create () in let on_error (err : error trace) = Lwt_canceler.cancel canceler >>= fun _ -> failwith "%a" Error_monad.pp_print_trace err in Baking_scheduling.run cctxt ~canceler ~stop_on_event ~on_error ~chain baking_configuration delegates end
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>