:mod:`golosscripts.monitor` =========================== .. py:module:: golosscripts.monitor Module Contents --------------- .. data:: log .. py:class:: Monitor(node: Union[str, List[str]], keys: Union[str, List[str]], witness: str, witness_pubkey: str, miss_window: int = 3600, allowed_misses: int = 1) Bases: :class:`golosscripts.golos_helper.GolosHelper` Performs monitoring of missed blocks and automatically switches signing key. .. method:: check_node_sync(self) Checks if API node is in sync. .. method:: set_miss_data(self, witness: Witness) .. method:: check_miss_window_end(self) .. method:: do_witness_check(self, witness: Witness) Check whether witness configured on another node is missing blocks. .. method:: run_once(self) Do miss check once. .. method:: run_forever(self) Main loop.