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." ); }
public void BruteForceThread() { if (Hashes.Any()) { if (CheckForHashesInFile) { CheckFile(); } if (TryToBruteForce) { var variationModel = GenerateAllWordsVariations(); TryBruteforce(variationModel); } } }