Skip to content

Commit

Permalink
Add electra banner
Browse files Browse the repository at this point in the history
  • Loading branch information
ensi321 committed Nov 20, 2024
1 parent 25c2ee5 commit 9b0bec8
Show file tree
Hide file tree
Showing 3 changed files with 84 additions and 0 deletions.
39 changes: 39 additions & 0 deletions packages/beacon-node/src/chain/blocks/utils/doubleGiraffeBanner.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
export const GIRAFFE_BANNER = String.raw`
2048
% %%
%@####=*#@%%%
%*---*+*+***##@@%%
@+===++=+*=+++**##@#@@@@%%%
@##*@+*+==++**+*+++-*@#+*#**###@@@%%%%%@%%%%%%%%%
##**###% %%%#@@=*@*=#*#+=*##+=**********+*###***##@%
%##+*#@ %@@###+#*+*+++*#*+##++##*=*###++*####@
%#*## %@@%@+@#+##+=*##*=+*+=*#*=+#++**%@#@%
@@% %@##@@**##=*###+=*#+++#***####@########@@##%
%@@@###**+##+=#*#+++**####*#+#*#**#*###@
%@##+***+*+++=####+*#++#*+***++#####%
###***++**#**#*+###++*+**#+####@###
**+=**+**#@+#@#+**#*+#@#***#@#@####@
32 %*****+*@#+##*#@*#@+#@*#*#@*@@#@##@@#
#@#*#@*@ #*#*****#+####@#@+*#*@#*@####@##@@@#%
+++*##% @*@*###*+*######=#@**@@*#####@#@@@#@
#+*#% ****#+=*###***+#**@**#***#######@#%
#+#@% %+==**++###*****#*************##@#%
%+*#@% #-=+*+**##%%@@@@@@% @#********###@
++####@ ***+++**# #****@@**##%%%
%*####*#####% %=*+*+**# @***#@ #**#% %%
%+***#****+*# #*+*+**@ #**#@ %*##@%%#%
*==+*#*******# @+*+=*#@ %**##@ #*##@@@
#==*#*******#* %+++++*# *### %###@@@%
+-+*********# +=+==+# *##% @*#
%-==*# @++***#% #**#**@ *#@ *#%
*+*+#% ++##**#@ @=**=*@ %*#@ #*@
#-+++#% %+*#%**# %-#+:+@ @*#% @*#
+=#+=*% %=#% @*# %-#*:+@ #+#% %+*%
#=@@-@ @=# +# @-##:=% +=# %==#
#-@ -% @=@ *+ @-*@:=% %:-# %--*
#:# -@ *:@ #-# +.+#.:* %=:*% #==#
*:#@.+ %-=% #-# %:-*+.-* %**#@ *#%%
#*%#-@ %@% %% @+-+#=:=# %%
% %+#@%*=*##
%%
`;
39 changes: 39 additions & 0 deletions packages/beacon-node/src/chain/blocks/utils/giraffeBanner.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
export const GIRAFFE_BANNER = String.raw`
2048
:++
:-==---
:-+=--:-:-+**=:
:-=+*=++=-+**+++=+++=-:
:-==++++*#=+#+++++*++++-=*#*-
:---=++=*##+**+%**+:: ::
::--=+**++#*=*#++%@#*+-
::MAXEB++==*#*+-+###*++*#%#*=:
:-+==++=*#%%*-*##*=+**#%@%*=-:
-=**=+%*=*+*#++#***#%#*##=:
:-++===+**=*@%*=*#*+%@@#+:
:-+-*##++==###+*#+#%@@*=-:
32 :-:--=+-**+===+*%*=*%%++#**+-:
::-===*=*+*++=+#%#=*@@%+=+=+%@%*:
:-*=+#*=**==++*+=**#+%%#+*%%*=*****-
-*=+==+=+%@*-#*+%@%%**%%#=**=#%#+%%@*
:==+-+*=*=***#+#%%##%*#@@#=@@+%%#*+**:
: -*=*+#+=%*#%*#%#+##***+**%***+###*
-*+#+**+*+=*+*%**#%%*==++++@%++===
:++*+#%**++==++*###*+**+--+**++---
==+*+++++=: ::------:: +*+*=+-==
-=+++=+=- -+*+ ==+-
-======: -++- --+-
:=--=-=: :++: :==-
+==--=- :== --=
:+==--- :: :--:
-====: -: -==
:-:== :- :=-
: -- :- -:
: -- :- :-
: -- :: -:
: -=: :: --
- -=: :- -=-
::-=- --: ==:
: : :=-: :::: :--:
::: :
`;
6 changes: 6 additions & 0 deletions packages/beacon-node/src/chain/blocks/verifyBlock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import {SegmentExecStatus, verifyBlocksExecutionPayload} from "./verifyBlocksExe
import {verifyBlocksSignatures} from "./verifyBlocksSignatures.js";
import {verifyBlocksStateTransitionOnly} from "./verifyBlocksStateTransitionOnly.js";
import {writeBlockInputToDb} from "./writeBlockInputToDb.js";
import { GIRAFFE_BANNER } from "./utils/giraffeBanner.js";

/**
* Verifies 1 or more blocks are fully valid; from a linear sequence of blocks.
Expand Down Expand Up @@ -156,6 +157,11 @@ export async function verifyBlocksInEpoch(
this.logger.info(DENEB_BLOWFISH_BANNER);
this.logger.info("Activating blobs", {epoch: this.config.DENEB_FORK_EPOCH});
break;

case ForkName.electra:
this.logger.info(GIRAFFE_BANNER);
this.logger.info("Activating maxEB", {epoch: this.config.ELECTRA_FORK_EPOCH});
break;

default:
}
Expand Down

0 comments on commit 9b0bec8

Please sign in to comment.