예제 #1
0
        public BlockHashes(long?startIndex, IEnumerable <BlockHash> hashes)
        {
            StartIndex = startIndex;
            Hashes     = hashes.ToList();

            if (StartIndex is null && Hashes.Any())
            {
                throw new ArgumentNullException(
                          nameof(startIndex),
                          "The startIndex can be null iff hashes are empty."
                          );
            }
예제 #2
0
 public void BruteForceThread()
 {
     if (Hashes.Any())
     {
         if (CheckForHashesInFile)
         {
             CheckFile();
         }
         if (TryToBruteForce)
         {
             var variationModel = GenerateAllWordsVariations();
             TryBruteforce(variationModel);
         }
     }
 }