示例#1
0
 public BinaryAgreement(
     BinaryAgreementId agreementId, IPublicConsensusKeySet wallet, IConsensusBroadcaster broadcaster)
     : base(wallet, agreementId, broadcaster)
 {
     _agreementId  = agreementId;
     _requested    = ResultStatus.NotRequested;
     _currentEpoch = 0;
     _resultEpoch  = 0;
     _wasRepeat    = false;
 }
示例#2
0
 protected bool Equals(BinaryAgreementId other)
 {
     return(Era == other.Era && AssociatedValidatorId == other.AssociatedValidatorId);
 }