Rename Functions to More Closely Match Spec (#5591)

* Rename Functions to More Closely Match Spec
This commit is contained in:
ethDreamer
2024-04-16 14:03:08 -05:00
committed by GitHub
parent f68989815c
commit cda926ce1b
6 changed files with 11 additions and 11 deletions

View File

@@ -371,14 +371,14 @@ pub fn process_deposits<E: EthSpec>(
// Update the state in series.
for deposit in deposits {
process_deposit(state, deposit, spec, false)?;
apply_deposit(state, deposit, spec, false)?;
}
Ok(())
}
/// Process a single deposit, optionally verifying its merkle proof.
pub fn process_deposit<E: EthSpec>(
pub fn apply_deposit<E: EthSpec>(
state: &mut BeaconState<E>,
deposit: &Deposit,
spec: &ChainSpec,