public ConsensusHandlerBase(ConsensusService context)
        {
            _log        = new SimpleLogger("ConsensusHandlerBase").Logger;
            _context    = context;
            TimeStarted = DateTime.Now;

            _outOfOrderedMessages = new ConcurrentQueue <ConsensusMessage>();
        }
        public ViewChangeHandler(DagSystem sys, ConsensusService context, LeaderCandidateSelected candidateSelected, LeaderSelectedHandler leaderSelected) : base(context)
        {
            _sys = sys;

            _candidateSelected = candidateSelected;
            _leaderSelected    = leaderSelected;

            reqMsgs    = new ConcurrentDictionary <string, VCReqWithTime>();
            replyMsgs  = new ConcurrentDictionary <string, VCReplyWithTime>();
            commitMsgs = new ConcurrentDictionary <string, VCCommitWithTime>();
        }
예제 #3
0
 public ConsensusEngagingWorker(ConsensusService context, string hash) : base(context, hash)
 {
 }