예제 #1
0
        public void AddFullBlock(RegistryFullBlock registryFullBlock)
        {
            IKey key = _identityKeyProvider.GetKey(registryFullBlock.ShortBlockHash);

            if (!CandidateBlocks.ContainsKey(key))
            {
                CandidateBlocks.Add(key, registryFullBlock);
                CandidateVotes.Add(key, 0);
            }
        }
예제 #2
0
 public void Reset()
 {
     CandidateBlocks.Clear();
     CandidateVotes.Clear();
     VotingBlocks.Clear();
 }