Пример #1
0
        public bool DigestInit(PoolConfig poolConfig)
        {
            var vertHashDataFile = "verthash.dat";

            if (poolConfig.Extra.TryGetValue("vertHashDataFile", out var result))
            {
                vertHashDataFile = ((string)result).Trim();
            }

            logger.Info(() => $"Loading verthash data file {vertHashDataFile}");

            return(LibMultihash.verthash_init(vertHashDataFile, false) == 0);
        }