mirror of
https://gitlab.com/pulsechaincom/lighthouse-pulse.git
synced 2025-01-06 02:52:20 +00:00
Fix bug with total_balance in epoch processing
This commit is contained in:
parent
b0513b1ec1
commit
c5158e2974
@ -144,8 +144,10 @@ impl EpochProcessable for BeaconState {
|
|||||||
|
|
||||||
let previous_epoch_attester_indices =
|
let previous_epoch_attester_indices =
|
||||||
self.get_attestation_participants_union(&previous_epoch_attestations[..], spec)?;
|
self.get_attestation_participants_union(&previous_epoch_attestations[..], spec)?;
|
||||||
let previous_total_balance =
|
let previous_total_balance = self.get_total_balance(
|
||||||
self.get_total_balance(&previous_epoch_attester_indices[..], spec);
|
&get_active_validator_indices(&self.validator_registry, previous_epoch),
|
||||||
|
spec,
|
||||||
|
);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Validators targetting the previous justified slot
|
* Validators targetting the previous justified slot
|
||||||
|
Loading…
Reference in New Issue
Block a user