Ejemplo n.º 1
0
        public static Validator Clone(Validator other)
        {
            var clone = new Validator(
                BlsPublicKey.Clone(other.PublicKey),
                Hash32.Clone(other.WithdrawalCredentials),
                other.EffectiveBalance,
                other.ActivationEligibilityEpoch,
                other.ActivationEpoch,
                other.ExitEpoch,
                other.WithdrawableEpoch
                );

            return(clone);
        }
Ejemplo n.º 2
0
 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;
 }