public Validator( BlsPublicKey publicKey, Hash32 withdrawalCredentials, Gwei effectiveBalance, //bool slashed, Epoch activationEligibilityEpoch, Epoch activationEpoch, Epoch exitEpoch, Epoch withdrawableEpoch) { PublicKey = publicKey; WithdrawalCredentials = withdrawalCredentials; EffectiveBalance = effectiveBalance; ActivationEligibilityEpoch = activationEligibilityEpoch; ActivationEpoch = activationEpoch; ExitEpoch = exitEpoch; WithdrawableEpoch = withdrawableEpoch; }
public void SetSlashings(Epoch slashingsIndex, Gwei amount) => _slashings[(int)(ulong)slashingsIndex] += amount;
public void SetBalance(ValidatorIndex validatorIndex, Gwei balance) => _balances[(int)(ulong)validatorIndex] = balance;
public void AddValidatorWithBalance(Validator validator, Gwei amount) { _validators.Add(validator); _balances.Add(amount); }
public void SetEffectiveBalance(Gwei effectiveBalance) => EffectiveBalance = effectiveBalance;