add ANSI art for Deneb 🐟 (#4803)

Trigger ANSI art on upgrade to Deneb

Art created by http://beatscribe.com (beatscribe#1008 on Discord)
This commit is contained in:
Etan Kissling 2023-04-10 14:42:19 +02:00 committed by GitHub
parent b7d08d0a38
commit 566c178e59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 78 additions and 4 deletions

View File

@ -2086,7 +2086,8 @@ proc updateHead*(
if dag.vanityLogs.onUpgradeToCapella != nil:
dag.vanityLogs.onUpgradeToCapella()
of ConsensusFork.Deneb:
discard
if dag.vanityLogs.onUpgradeToDeneb != nil:
dag.vanityLogs.onUpgradeToDeneb()
if dag.vanityLogs.onKnownBlsToExecutionChange != nil and
checkBlsToExecutionChanges(

View File

@ -0,0 +1,31 @@

....::"""""""""""""""""""""..
. ..* #### ;". ~~. ::::::
.4#####:^.' `.. :::::: `. . `o
.4#####::' :::::..' .. . .
.d####:: . `. . ::: .
. o.####::...:. `. . . ....
.d##::.d$$ `..::$$b. . .: .
.d###::d$$$'::. ` .. .:$$$$
.d####:::$$$$#:: ........`$$b : .
d####::.. `d##:.': '$':: .
o d####::' . d$#::., .. :..o
.d###::. ; $$##:: ....'.; . .
. .d####::' :. .q$$###:::.:
$###::. _.^. `q$$$$##:: ..> . .. . :' .
$###::. ,-- ..:.`....::::..' .. .. .'::: .' :
$##:: :`. .....''''' ```..... . ......'''````...... :.
$##: ...' .......'''''''' """"" `````````..... `. . .
d##: .' ...' .......""""""""""""""""""""""""""".... `. ; .
$#::.`. .' .^.:. '... `.. : .
(### `."""" .. . ::... . :.. ""'' :
`@#$$$$$$$$$$$$$$$$$$$$$$#####::::::$$ : : . ..
"""""""""""""""""""""""""""""'' ' '
o . o.o . o. oo. : .
. : o . o : o . o . o. o . : . o . o . .
o.ooo: .: o
 $$$b $$ .d$b. $$$b $$$b $$ .d$b. $$$b $$$b $$ .d$b. $$$b
 $ `$b $$ $$ $$ $ `$b $ `$b $$ $$ $$ $ `$b $ `$b $$ $$ $$ $ `$b
$$$$' $$ $$ $$ $$$$' $$$$' $$ $$ $$ $$$$' $$$$' $$ $$ $$ $$$$'
$ '$b $$ $$ $$ $ '$b $ '$b $$ $$ $$ $ '$b $ '$b $$ $$ $$ $ '$b
 $$$$' $$$`$$$' $$$$' $$$$' $$$`$$$' $$$$' $$$$' $$$`$$$' $$$$'

View File

@ -0,0 +1,31 @@
....::""""""""""""""""""""". .
. . .* #### ;". ~~. ::::: :
.4#####:^.' `.. :::::: `. . ` o
.4#####::' : ::::..' .. . .
.d####:: . `. . : :: .
. o .####::...: . `. . . ....
.d##::.d$$ `. . ::$$b. . . : .
.d###::d$$$'::. ` . . . :$$$$
.d####:::$$$$#:: ....... .`$$b : .
d####::.. `d##:.' : '$':: .
o d####::' . d$#:: ., . . :. . o
.d###::. ; $$##:: ....' . ; . .
. .d####::' :. .q$$###:: : . :
$###::. _.^. `q$$$$##:: ..> . .. . :' .
$###::. ,-- ..:.`....::::..' . . .. .' ::: .' :
$##:: :`. .....''''' ```..... . ......'''````...... :.
$##: ...' .......'''''''' """"" `````````..... `. . .
d##: .' ...' .......""""""""""""""""""""""""""".... `. ; .
$#::.`. .' .^. : . ' ... `.. : .
(### `."""" .. . ::... . :. . ""'' :
`@#$$$$$$$$$$$$$$$$$$$$$$#####::::::$$ : : . . .
"""""""""""""""""""""""""""""'' ' '
o . o . o . o . o o . : .
. : o . o : o . o . o . o . : . o . o . .
o . o o o : . : o
$$$b $$ .d$b. $$$b $$$b $$ .d$b. $$$b $$$b $$ .d$b. $$$b
$ `$b $$ $$ $$ $ `$b $ `$b $$ $$ $$ $ `$b $ `$b $$ $$ $$ $ `$b
$$$$' $$ $$ $$ $$$$' $$$$' $$ $$ $$ $$$$' $$$$' $$ $$ $$ $$$$'
$ '$b $$ $$ $$ $ '$b $ '$b $$ $$ $$ $ '$b $ '$b $$ $$ $$ $ '$b
$$$$' $$$`$$$' $$$$' $$$$' $$$`$$$' $$$$' $$$$' $$$`$$$' $$$$'

View File

@ -30,6 +30,10 @@ type
# known by this node appears in a head block
onKnownBlsToExecutionChange*: LogProc
# Gets displayed on upgrade to Deneb. May be displayed multiple times
# in case of chain reorgs around the upgrade.
onUpgradeToDeneb*: LogProc
# Created by http://beatscribe.com/ (beatscribe#1008 on Discord)
# These need to be the main body of the log not to be reformatted or escaped.
@ -40,3 +44,6 @@ proc blink🐼*() = notice "\n" & staticRead("bellatrix" / "blink.ans")
proc mono🦉*() = notice "\n" & staticRead("capella" / "mono.txt")
proc color🦉*() = notice "\n" & staticRead("capella" / "color.ans")
proc blink🦉*() = notice "\n" & staticRead("capella" / "blink.ans")
proc mono🐟*() = notice "\n" & staticRead("deneb" / "mono.txt")
proc color🐟*() = notice "\n" & staticRead("deneb" / "color.ans")

View File

@ -122,13 +122,15 @@ func getVanityLogs(stdoutKind: StdoutLogKind): VanityLogs =
onMergeTransitionBlock: color🐼,
onFinalizedMergeTransitionBlock: blink🐼,
onUpgradeToCapella: color🦉,
onKnownBlsToExecutionChange: blink🦉)
onKnownBlsToExecutionChange: blink🦉,
onUpgradeToDeneb: color🐟)
of StdoutLogKind.NoColors:
VanityLogs(
onMergeTransitionBlock: mono🐼,
onFinalizedMergeTransitionBlock: mono🐼,
onUpgradeToCapella: mono🦉,
onKnownBlsToExecutionChange: mono🦉)
onKnownBlsToExecutionChange: mono🦉,
onUpgradeToDeneb: mono🐟)
of StdoutLogKind.Json, StdoutLogKind.None:
VanityLogs(
onMergeTransitionBlock:
@ -138,7 +140,9 @@ func getVanityLogs(stdoutKind: StdoutLogKind): VanityLogs =
onUpgradeToCapella:
(proc() = notice "🦉 Withdrowls now available 🦉"),
onKnownBlsToExecutionChange:
(proc() = notice "🦉 BLS to execution changed 🦉"))
(proc() = notice "🦉 BLS to execution changed 🦉"),
onUpgradeToDeneb:
(proc() = notice "🐟 Proto-Danksharding is ON 🐟"))
proc loadChainDag(
config: BeaconNodeConf,