Client/Baker: do not monitor endorsement while baking.
This commit is contained in:
parent
285427bcba
commit
fc7e4e56a6
@ -30,8 +30,11 @@ let run cctxt ?max_priority ~delay ?min_date delegates =
|
|||||||
let forge =
|
let forge =
|
||||||
Client_mining_blocks.monitor
|
Client_mining_blocks.monitor
|
||||||
cctxt ?min_date ~min_heads:1 () >>= fun block_stream ->
|
cctxt ?min_date ~min_heads:1 () >>= fun block_stream ->
|
||||||
Client_mining_operations.monitor_endorsement
|
(* Temporary desactivate the monitoring of endorsement:
|
||||||
cctxt >>= fun endorsement_stream ->
|
too slow for now. *)
|
||||||
|
(* Client_mining_operations.monitor_endorsement *)
|
||||||
|
(* cctxt >>= fun endorsement_stream -> *)
|
||||||
|
let endorsement_stream, _push = Lwt_stream.create () in
|
||||||
if Client_proto_args.Daemon.(!all || !mining) then
|
if Client_proto_args.Daemon.(!all || !mining) then
|
||||||
Client_mining_forge.create cctxt
|
Client_mining_forge.create cctxt
|
||||||
?max_priority delegates block_stream endorsement_stream
|
?max_priority delegates block_stream endorsement_stream
|
||||||
|
Loading…
Reference in New Issue
Block a user