mirror of
https://gitlab.com/pulsechaincom/lighthouse-pulse.git
synced 2025-01-01 00:41:20 +00:00
Renamed fork_choice::process_attestation_from_block
This commit is contained in:
parent
aa58e9e47c
commit
e23726c0a1
@ -112,7 +112,7 @@ impl<T: BeaconChainTypes> ForkChoice<T> {
|
|||||||
//
|
//
|
||||||
// https://github.com/ethereum/eth2.0-specs/blob/v0.7.0/specs/core/0_fork-choice.md
|
// https://github.com/ethereum/eth2.0-specs/blob/v0.7.0/specs/core/0_fork-choice.md
|
||||||
for attestation in &block.body.attestations {
|
for attestation in &block.body.attestations {
|
||||||
self.process_attestation_from_block(state, attestation)?;
|
self.process_attestation(state, attestation)?;
|
||||||
}
|
}
|
||||||
|
|
||||||
self.backend.process_block(block, block_root)?;
|
self.backend.process_block(block, block_root)?;
|
||||||
@ -120,7 +120,7 @@ impl<T: BeaconChainTypes> ForkChoice<T> {
|
|||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
fn process_attestation_from_block(
|
pub fn process_attestation(
|
||||||
&self,
|
&self,
|
||||||
state: &BeaconState<T::EthSpec>,
|
state: &BeaconState<T::EthSpec>,
|
||||||
attestation: &Attestation,
|
attestation: &Attestation,
|
||||||
|
Loading…
Reference in New Issue
Block a user