package tezos-baking-015-PtLimaPt
Tezos/Protocol: base library for `tezos-baker/accuser`
Install
Dune Dependency
Authors
Maintainers
Sources
tezos-16.1.tar.gz
sha256=43723d096307603703a1a89ed1b2eb202b365f5e7824b96b0cbf813b343a6cf7
sha512=b2a637f2e965000d3d49ad85277ca24d6cb07a1a7cf2bc69d296d8b03ad78c3eaa8e21e94b9162e62c2e11649cd03bc845b2a3dafe623b91065df69d47dc8e4f
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)"
>