public void AddFullBlock(RegistryFullBlock registryFullBlock) { IKey key = _identityKeyProvider.GetKey(registryFullBlock.ShortBlockHash); if (!CandidateBlocks.ContainsKey(key)) { CandidateBlocks.Add(key, registryFullBlock); CandidateVotes.Add(key, 0); } }
public void Reset() { CandidateBlocks.Clear(); CandidateVotes.Clear(); VotingBlocks.Clear(); }