BeaconState field renamed

This commit is contained in:
Mark Mackey
2022-11-10 11:49:55 -06:00
parent 2191242341
commit 756e48f5dc
5 changed files with 8 additions and 10 deletions

View File

@@ -60,7 +60,7 @@ pub fn upgrade_to_capella<E: EthSpec>(
#[cfg(feature = "withdrawals")]
next_withdrawal_index: 0,
#[cfg(feature = "withdrawals")]
latest_withdrawal_validator_index: 0,
next_withdrawal_validator_index: 0,
// Caches
total_active_balance: pre.total_active_balance,
committee_caches: mem::take(&mut pre.committee_caches),

View File

@@ -67,7 +67,7 @@ pub fn upgrade_to_eip4844<E: EthSpec>(
#[cfg(feature = "withdrawals")]
next_withdrawal_index: pre.next_withdrawal_index,
#[cfg(feature = "withdrawals")]
latest_withdrawal_validator_index: 0,
next_withdrawal_validator_index: 0,
// Caches
total_active_balance: pre.total_active_balance,
committee_caches: mem::take(&mut pre.committee_caches),