Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Source file chain_validator_events.ml
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232(*****************************************************************************)(* *)(* Open Source License *)(* Copyright (c) 2020-2022 Nomadic Labs. <contact@nomadic-labs.com> *)(* *)(* Permission is hereby granted, free of charge, to any person obtaining a *)(* copy of this software and associated documentation files (the "Software"),*)(* to deal in the Software without restriction, including without limitation *)(* the rights to use, copy, modify, merge, publish, distribute, sublicense, *)(* and/or sell copies of the Software, and to permit persons to whom the *)(* Software is furnished to do so, subject to the following conditions: *)(* *)(* The above copyright notice and this permission notice shall be included *)(* in all copies or substantial portions of the Software. *)(* *)(* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR*)(* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *)(* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL *)(* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER*)(* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING *)(* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER *)(* DEALINGS IN THE SOFTWARE. *)(* *)(*****************************************************************************)includeInternal_event.SimplemoduleRequest=Chain_validator_worker_state.Requestletsection=["validator";"chain"]letupdated_to_checkpoint=declare_2~section~name:"updated_to_checkpoint"~msg:"updated to checkpoint {block_hash} (running in mode {history_mode})"~level:Notice~pp1:Block_hash.pp~pp2:History_mode.Legacy.pp("block_hash",Block_hash.encoding)("history_mode",History_mode.Legacy.encoding)letprevalidator_filter_not_found=declare_1~section~name:"prevalidator_filter_not_found"~msg:"no prevalidator filter found for protocol {protocol_hash}"~level:Warning~pp1:Protocol_hash.pp("protocol_hash",Protocol_hash.encoding)letprevalidator_reinstantiation_failure=declare_1~section~name:"prevalidator_reinstantiation_failure"~msg:"failed to reinstantiate prevalidator error {trace}"~level:Error~pp1:pp_print_top_error_of_trace("trace",trace_encoding)letprevalidator_instantiation_failure=declare_1~section~name:"prevalidator_instantiation_failure"~msg:"failed to instantiate the prevalidator: {trace}"~level:Error~pp1:pp_print_top_error_of_trace("trace",trace_encoding)letloading_protocol=declare_1~section~name:"loading_protocol"~level:Notice~msg:"loading non-embedded protocol {protocol} from disk"~pp1:Protocol_hash.pp("protocol",Protocol_hash.encoding)letbootstrapped=declare_0~section~name:"bootstrapped"~msg:"chain is bootstrapped"~level:Notice()letsynchronisation_status=declare_1~section~name:"synchronisation_status"~msg:"synchronisation status: {status}"~level:Notice~pp1:Chain_validator_worker_state.sync_status_pp("status",Chain_validator_worker_state.sync_status_encoding)letcould_not_switch_testchain=declare_1~section~name:"could_not_switch_testchain"~msg:"error while switching testchina: {trace}"~level:Error~pp1:pp_print_top_error_of_trace("trace",Error_monad.trace_encoding)letrequest_failure=declare_3~section~name:"request_failure"~msg:"chain validator request {view} failed ({worker_status}): {errors}"~level:Notice~pp1:Request.pp~pp2:Worker_types.pp_status~pp3:pp_print_top_error_of_trace("view",Request.encoding)("worker_status",Worker_types.request_status_encoding)("errors",Error_monad.trace_encoding)letnotify_head=declare_2~section~name:"notify_head"~msg:"head {block_hash} from {peer_id} processed"~level:Debug~pp1:P2p_peer.Id.pp_short~pp2:Block_hash.pp_short("peer_id",P2p_peer.Id.encoding)("block_hash",Block_hash.encoding)letnotify_branch=declare_2~section~name:"notify_branch"~msg:"branch up to {head_hash} from {peer_id} processed"~level:Info~pp1:P2p_peer.Id.pp_short~pp2:Block_hash.pp_short("peer_id",P2p_peer.Id.encoding)("head_hash",Block_hash.encoding)letconnection=declare_1~section~name:"connection"~msg:"connection of {peer_id}"~level:Info~pp1:P2p_peer.Id.pp("peer_id",P2p_peer.Id.encoding)letdisconnection=declare_1~section~name:"disconnection"~msg:"disconnection of {peer_id}"~level:Info~pp1:P2p_peer.Id.pp("peer_id",P2p_peer.Id.encoding)letignore_head=declare_2~section~name:"ignore_head"~msg:"current head is better than {view} (level {level}), we do not switch"~level:Notice~pp1:Request.pp~pp2:(funfmt->Format.fprintffmt"%li")("view",Request.encoding)("level",Data_encoding.int32)letbranch_switch=declare_2~section~name:"branch_switch"~msg:"switch branch to {view} ({level})"~level:Notice~pp1:Request.pp~pp2:(funfmt->Format.fprintffmt"%li")("view",Request.encoding)("level",Data_encoding.int32)lethead_increment=declare_2~section~name:"head_increment"~msg:"head is now {view} ({level})"~level:Notice~pp1:Request.pp~pp2:(funfmt->Format.fprintffmt"%li")("view",Request.encoding)("level",Data_encoding.int32)letbootstrap_head_increment=declare_2~section~name:"bootstrap_time_remaining"~msg:"synchronizing: current head is {timediff} old (level: {level})"~level:Notice("level",Data_encoding.int32)~pp1:(funfmt->Format.fprintffmt"%li")("timediff",Time.System.Span.encoding)~pp2:Time.System.Span.pp_humletblock_info=declare_2~section~name:"block_info"~msg:"treated block has timestamp {timestamp} with fitness {fitness}"~level:Info~pp1:Time.Protocol.pp_hum~pp2:Fitness.pp("timestamp",Time.Protocol.encoding)("fitness",Fitness.encoding)letbootstrap_active_peers=declare_2~section~name:"bootstrap_active_peers"~msg:"bootstrap peers: active {active} needed {needed}"~level:Debug~pp1:Format.pp_print_int~pp2:Format.pp_print_int("active",Data_encoding.int31)("needed",Data_encoding.int31)letbootstrap_active_peers_heads_time=declare_2~section~name:"bootstrap_active_peers_heads_time"~msg:"bootstrap peers: active {active} needed {needed}"~level:Debug~pp1:Format.pp_print_int~pp2:Format.pp_print_int("active",Data_encoding.int31)("needed",Data_encoding.int31)