Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Source file event.ml
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292(*****************************************************************************)(* *)(* Open Source License *)(* Copyright (c) 2023 Nomadic Labs, <contact@nomadic-labs.com> *)(* Copyright (c) 2023 Functori, <contact@functori.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. *)(* *)(*****************************************************************************)moduleSimple=structincludeInternal_event.Simpleletsection=["smart_rollup_node"]letstarting_node=declare_0~section~name:"starting_smart_rollup_node"~msg:"Starting the smart rollup node"~level:Notice()letshutdown_node=declare_1~section~name:"stopping_smart_rollup_node"~msg:"Stopping the smart rollup node"~level:Notice("exit_status",Data_encoding.int8)letnode_is_ready=declare_2~section~name:"smart_rollup_node_is_ready"~msg:"The smart rollup node is listening to {addr}:{port}"~level:Notice("addr",Data_encoding.string)("port",Data_encoding.uint16)letrollup_exists=declare_2~section~name:"smart_rollup_node_knows_its_rollup"~msg:"The smart rollup node is interacting with rollup {addr} of kind {kind}"~level:Info("addr",Octez_smart_rollup.Address.encoding)("kind",Data_encoding.string)letstarting_metrics_server=declare_2~section~name:"starting_metrics_server"~msg:"Starting metrics server on {host}:{port}"~level:Notice("host",Data_encoding.string)("port",Data_encoding.uint16)letmetrics_ended=declare_1~section~name:"metrics_ended"~level:Error~msg:"[Error]: Metrics server ended with error {stacktrace}"("stacktrace",Data_encoding.string)letkernel_debug=declare_1~section~name:"kernel_debug"~level:Info~msg:"{log}"("log",Data_encoding.string)~pp1:Format.pp_print_stringletsimulation_kernel_debug=declare_1~section~name:"simulation_kernel_debug"~level:Info~msg:"[simulation] {log}"("log",Data_encoding.string)~pp1:Format.pp_print_stringletwarn_dal_enabled_no_node=declare_0~section~name:"dal_enabled_no_node"~level:Warning~msg:"[Warning]: DAL is enabled in the protocol but no DAL node was \
provided for the rollup node"()letwaiting_first_block=declare_1~section~name:"smart_rollup_node_waiting_first_block"~level:Info~msg:"Waiting for first block of protocol {protocol} to appear"("protocol",Protocol_hash.encoding)letreceived_first_block=declare_2~section~name:"smart_rollup_node_received_first_block"~level:Info~msg:"First block of protocol {protocol} received: {block}"("block",Block_hash.encoding)("protocol",Protocol_hash.encoding)letdetected_protocol_migration=declare_0~section~name:"detected_protocol_migration"~level:Notice~msg:"Detected protocol migration, the rollup node will now stop"()letacquiring_lock=declare_0~section~name:"acquiring_lock"~level:Info~msg:"Acquiring lock on data directory."()letcalling_gc=declare_2~section~name:"calling_gc"~level:Info~msg:"Garbage collection started for level {gc_level} at head level \
{head_level}"("gc_level",Data_encoding.int32)("head_level",Data_encoding.int32)letstarting_context_gc=declare_1~section~name:"starting_context_gc"~level:Info~msg:"Starting context garbage collection for commit {context_hash}"("context_hash",Smart_rollup_context_hash.encoding)~pp1:Smart_rollup_context_hash.ppletcontext_gc_already_launched=declare_0~section~name:"gc_already_launched"~level:Info~msg:"An attempt to launch context GC was made, but a previous GC run has \
not yet finished. No action was taken"()letending_context_gc=declare_2~section~name:"ending_context_gc"~level:Info~msg:"Context garbage collection finished in {duration} (finalised in \
{finalisation})"~pp1:Time.System.Span.pp_hum("duration",Time.System.Span.encoding)~pp2:Time.System.Span.pp_hum("finalisation",Time.System.Span.encoding)letcontext_gc_failure=declare_1~section~name:"gc_failure"~level:Warning~msg:"[Warning] Context garbage collection failed: {error}"("error",Data_encoding.string)letcontext_gc_launch_failure=declare_1~section~name:"context_gc_launch_failure"~level:Warning~msg:"[Warning] Context garbage collection launch failed: {error}"("error",Data_encoding.string)letgc_levels_storage_failure=declare_0~section~name:"gc_levels_storage_failure"~level:Warning~msg:"[Warning] An attempt to write GC level information to disk failed"()letconvert_history_mode=declare_2~section~name:"convert_history_mode"~level:Notice~msg:"Converting the {old_history_mode} rollup node into an \
{new_history_mode} rollup node"("old_history_mode",Configuration.history_mode_encoding)("new_history_mode",Configuration.history_mode_encoding)letgc_finished=declare_2~section~name:"gc_finished"~level:Info~msg:"Garbage collection finished for level {gc_level} at head level \
{head_level}"("gc_level",Data_encoding.int32)("head_level",Data_encoding.int32)endletstarting_node=Simple.(emitstarting_node)letshutdown_nodeexit_status=Simple.(emitshutdown_nodeexit_status)letnode_is_ready~rpc_addr~rpc_port=Simple.(emitnode_is_ready(rpc_addr,rpc_port))letrollup_exists~addr~kind=letkind=Octez_smart_rollup.Kind.to_stringkindinSimple.(emitrollup_exists(addr,kind))letstarting_metrics_server~host~port=Simple.(emitstarting_metrics_server)(host,port)letmetrics_endederror=Simple.(emitmetrics_ended)errorletmetrics_ended_dont_waiterror=Simple.(emit__dont_wait__use_with_caremetrics_ended)errorletkernel_debugmsg=Simple.(emitkernel_debug)msgletsimulation_kernel_debugmsg=Simple.(emitsimulation_kernel_debug)msgletkernel_debug_dont_waitmsg=Simple.(emit__dont_wait__use_with_carekernel_debug)msgletwarn_dal_enabled_no_node()=Simple.(emitwarn_dal_enabled_no_node)()letwaiting_first_blockp=Simple.(emitwaiting_first_block)pletreceived_first_blockbp=Simple.(emitreceived_first_block)(b,p)letdetected_protocol_migration()=Simple.(emitdetected_protocol_migration)()letacquiring_lock()=Simple.(emitacquiring_lock)()letcalling_gc~gc_level~head_level=Simple.(emitcalling_gc)(gc_level,head_level)letstarting_context_gchash=Simple.(emitstarting_context_gc)hashletcontext_gc_already_launched()=Simple.(emitcontext_gc_already_launched)()letending_context_gct=Simple.(emitending_context_gc)tletcontext_gc_failuremsg=Simple.(emitcontext_gc_failure)msgletcontext_gc_launch_failuremsg=Simple.(emitcontext_gc_launch_failure)msgletgc_levels_storage_failure()=Simple.(emitgc_levels_storage_failure)()letconvert_history_modeold_history_modenew_history_mode=Simple.(emitconvert_history_mode)(old_history_mode,new_history_mode)letgc_finished~gc_level~head_level=Simple.(emitgc_finished)(gc_level,head_level)