2022-12-21 12:30:24 +00:00
|
|
|
# beacon_chain
|
2024-01-06 14:26:56 +00:00
|
|
|
# Copyright (c) 2022-2024 Status Research & Development GmbH
|
2022-12-21 12:30:24 +00:00
|
|
|
# Licensed and distributed under either of
|
|
|
|
# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT).
|
|
|
|
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
|
|
|
|
# at your option. This file may not be copied, modified, or distributed except according to those terms.
|
|
|
|
|
2023-01-20 14:14:37 +00:00
|
|
|
{.push raises: [].}
|
2022-12-21 12:30:24 +00:00
|
|
|
|
|
|
|
import
|
|
|
|
std/os,
|
|
|
|
chronicles
|
|
|
|
|
|
|
|
type
|
2023-08-25 09:29:07 +00:00
|
|
|
LogProc = proc() {.gcsafe, raises: [].}
|
2022-12-21 12:30:24 +00:00
|
|
|
|
|
|
|
VanityLogs* = object
|
|
|
|
# Upon the merge activating, these get displayed, at least once when the
|
|
|
|
# head becomes post-merge and then when the merge is finalized. If chain
|
|
|
|
# reorgs happen around the initial merge onMergeTransitionBlock might be
|
|
|
|
# called several times.
|
|
|
|
onMergeTransitionBlock*: LogProc
|
|
|
|
onFinalizedMergeTransitionBlock*: LogProc
|
|
|
|
|
|
|
|
# Gets displayed on upgrade to Capella. May be displayed multiple times
|
|
|
|
# in case of chain reorgs around the upgrade.
|
|
|
|
onUpgradeToCapella*: LogProc
|
|
|
|
|
2023-03-02 16:13:35 +00:00
|
|
|
# Gets displayed on when a BLS to execution change message for a validator
|
|
|
|
# known by this node appears in a head block
|
|
|
|
onKnownBlsToExecutionChange*: LogProc
|
|
|
|
|
2023-04-10 12:42:19 +00:00
|
|
|
# Gets displayed on upgrade to Deneb. May be displayed multiple times
|
|
|
|
# in case of chain reorgs around the upgrade.
|
|
|
|
onUpgradeToDeneb*: LogProc
|
|
|
|
|
2024-06-10 16:45:40 +00:00
|
|
|
# Gets displayed on upgrade to Electra. May be displayed multiple times
|
|
|
|
# in case of chain reorgs around the upgrade.
|
|
|
|
onUpgradeToElectra*: LogProc
|
|
|
|
|
2024-12-03 11:45:12 +00:00
|
|
|
# Created by https://beatscribe.com (beatscribe#1008 on Discord)
|
2022-12-21 12:30:24 +00:00
|
|
|
# These need to be the main body of the log not to be reformatted or escaped.
|
|
|
|
|
2023-11-29 00:30:44 +00:00
|
|
|
proc bellatrixMono*() = notice "\n" & staticRead("bellatrix" / "mono.txt")
|
|
|
|
proc bellatrixColor*() = notice "\n" & staticRead("bellatrix" / "color.ans")
|
|
|
|
proc bellatrixBlink*() = notice "\n" & staticRead("bellatrix" / "blink.ans")
|
2022-12-21 12:30:24 +00:00
|
|
|
|
2023-11-29 00:30:44 +00:00
|
|
|
proc capellaMono*() = notice "\n" & staticRead("capella" / "mono.txt")
|
|
|
|
proc capellaColor*() = notice "\n" & staticRead("capella" / "color.ans")
|
|
|
|
proc capellaBlink*() = notice "\n" & staticRead("capella" / "blink.ans")
|
2023-04-10 12:42:19 +00:00
|
|
|
|
2023-11-29 00:30:44 +00:00
|
|
|
proc denebMono*() = notice "\n" & staticRead("deneb" / "mono.txt")
|
|
|
|
proc denebColor*() = notice "\n" & staticRead("deneb" / "color.ans")
|
2024-06-10 16:45:40 +00:00
|
|
|
|
|
|
|
proc electraMono*() = notice "\n" & staticRead("electra" / "mono.txt")
|
|
|
|
proc electraColor*() = notice "\n" & staticRead("electra" / "color.ans")
|
2024-12-03 11:45:12 +00:00
|
|
|
proc electraBlink*() = notice "\n" & staticRead("electra" / "blink.ans")
|