Update consensus/state_processing/src/upgrade/eip4844.rs

Co-authored-by: realbigsean <seananderson33@GMAIL.com>
This commit is contained in:
ethDreamer 2022-12-19 19:35:08 -06:00 committed by GitHub
parent b75ca74222
commit 0c22d69e15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,7 +10,6 @@ pub fn upgrade_to_eip4844<E: EthSpec>(
let pre = pre_state.as_capella_mut()?; let pre = pre_state.as_capella_mut()?;
// FIXME(sean) This is a hack to let us participate in testnets where capella doesn't exist. // FIXME(sean) This is a hack to let us participate in testnets where capella doesn't exist.
// let previous_fork_version = spec.bellatrix_fork_version;
let previous_fork_version = pre.fork.current_version; let previous_fork_version = pre.fork.current_version;
// Where possible, use something like `mem::take` to move fields from behind the &mut // Where possible, use something like `mem::take` to move fields from behind the &mut