mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-18 20:32:45 +00:00
Add Electra fork boilerplate (#5122)
* Add Electra fork boilerplate * Remove electra from spec tests * Fix tests * Remove sneaky log file * Fix more tests * Fix even more tests and add suggestions * Remove unrelated lcli addition * Update more tests * Merge branch 'unstable' into electra * Add comment for test-suite lcli override * Merge branch 'unstable' into electra * Cleanup * Merge branch 'unstable' into electra * Apply suggestions * Merge branch 'unstable' into electra * Merge sigp/unstable into electra * Merge branch 'unstable' into electra
This commit is contained in:
@@ -81,6 +81,11 @@ pub fn run_parse_ssz<T: EthSpec>(
|
||||
"SignedBeaconBlockDeneb" => {
|
||||
decode_and_print(&bytes, SignedBeaconBlockDeneb::<T>::from_ssz_bytes, format)?
|
||||
}
|
||||
"SignedBeaconBlockElectra" => decode_and_print(
|
||||
&bytes,
|
||||
SignedBeaconBlockElectra::<T>::from_ssz_bytes,
|
||||
format,
|
||||
)?,
|
||||
"BeaconState" => decode_and_print::<BeaconState<T>>(
|
||||
&bytes,
|
||||
|bytes| BeaconState::from_ssz_bytes(bytes, spec),
|
||||
@@ -101,6 +106,9 @@ pub fn run_parse_ssz<T: EthSpec>(
|
||||
"BeaconStateDeneb" => {
|
||||
decode_and_print(&bytes, BeaconStateDeneb::<T>::from_ssz_bytes, format)?
|
||||
}
|
||||
"BeaconStateElectra" => {
|
||||
decode_and_print(&bytes, BeaconStateElectra::<T>::from_ssz_bytes, format)?
|
||||
}
|
||||
"BlobSidecar" => decode_and_print(&bytes, BlobSidecar::<T>::from_ssz_bytes, format)?,
|
||||
other => return Err(format!("Unknown type: {}", other)),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user