Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions beacon_node/network/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -840,6 +840,7 @@ impl<T: BeaconChainTypes> NetworkService<T> {
new_fork = ?new_fork_name,
"Transitioned to new fork"
);
new_fork_name.fork_ascii();
}

fork_context.update_current_fork(*new_fork_name, new_fork_digest, current_epoch);
Expand Down
40 changes: 40 additions & 0 deletions consensus/types/src/fork_name.rs
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,46 @@ impl ForkName {
pub fn gloas_enabled(self) -> bool {
self >= ForkName::Gloas
}

pub fn fork_ascii(self) {
if self == ForkName::Fulu {
println!(
r#"
╔═══════════════════════════════════════╗
║ ║
║ TO FULU, MOAR BLOBS TO ETHEREUM ║
║ ║
║ III DECEMBER MMXXV ║
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor comment - if we end up choosing a different fork epoch, make sure we update this 😅

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've added a TODO to #8135

║ ║
╚═══════════════════════════════════════╝

=============================================================================
|||| ||||
|---------------------------------------------------------------------------|
|___-----___-----___-----___-----___-----___-----___-----___-----___-----___|
/ _ \===/ _ \ / _ \===/ _ \ / _ \===/ _ \ / _ \===/ _ \
( (.\ oOo /.) ) ( (.\ oOo /.) ) ( (.\ oOo /.) ) ( (.\ oOo /.) )
\__/=====\__/ \__/=====\__/ \__/=====\__/ \__/=====\__/
||||||| ||||||| ||||||| |||||||
||||||| ||||||| \\/), ||||||| |||||||
||||||| ||||||| ,'.' /, ||||||| |||||||
||||||| ||||||| (_)- / /, ||||||| |||||||
||||||| ||||||| /\_/ |__..--, * ||||||| |||||||
||||||| ||||||| (\___/\ \ \ / ).' ||||||| |||||||
||||||| ||||||| \____/ / (_ // ||||||| |||||||
||||||| ||||||| \\_ ,'--'\_( ||||||| |||||||
(oOoOo) (oOoOo) )_)_/ )_/ )_) (oOoOo) (oOoOo)
J%%%%%L J%%%%%L (_(_.'(_.'(_.' J%%%%%L J%%%%%L
ZZZZZZZZZ ZZZZZZZZZ ZZZZZZZZZ ZZZZZZZZZ
===========================================================================
|_________________________________________________________________________|
|___________________________________________________________________________|
|_____________________________________________________________________________|
|_______________________________________________________________________________|
"#
);
}
}
}

/// Map a fork name into a fork-versioned superstruct type like `BeaconBlock`.
Expand Down