File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 2828 InterruptHandler ,
2929 check_default_account_balance ,
3030 wait_prysm_ready ,
31+ telegram ,
3132)
3233
3334# Send notification to admins on error
@@ -63,6 +64,16 @@ def main() -> None:
6364 # wait for interrupt
6465 interrupt_handler = InterruptHandler ()
6566
67+ # Notify Telegram the oracle is warming up, so that
68+ # oracle maintainers know the service has restarted
69+ telegram .notify (
70+ message = f"Oracle starting with account [{ web3_client .eth .defaultAccount } ]"
71+ f"(https://etherscan.io/address/{ web3_client .eth .defaultAccount } )" ,
72+ parse_mode = "markdown" ,
73+ raise_on_errors = True ,
74+ disable_web_page_preview = True ,
75+ )
76+
6677 # wait that node is synced before trying to do anything
6778 wait_prysm_ready (
6879 interrupt_handler , BEACON_CHAIN_RPC_ENDPOINT , PROCESS_INTERVAL , logger
You can’t perform that action at this time.
0 commit comments