Skip to content

Commit

Permalink
Fix excavator test.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan A Young committed Feb 11, 2018
1 parent dfa6173 commit 3a93660
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions tests/excavator.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
import sys
sys.path.append('..')

import miners, settings
import miners.devices
import miners.excavator
import miners.miner
import settings
import utils

import logging
from pprint import pprint
from time import sleep

logging.basicConfig(format='%(message)s', level=logging.DEBUG)

devices = miners.devices.enumerate_nvidia_devices()

stratums = {
Expand All @@ -17,7 +25,7 @@
my_settings = settings.DEFAULT_SETTINGS
my_settings['nicehash']['wallet'] = '1BQSMa5mfDNzut5PN9xgtJe3wqaqGEEerD'

exc = miners.Excavator(my_settings, stratums)
exc = miners.excavator.Excavator(my_settings, stratums)
exc.load()

ns = [a for a in exc.algorithms if a.algorithms == ['neoscrypt']][0]
Expand All @@ -26,12 +34,10 @@
ns.detach_device(devices[0])

eq = [a for a in exc.algorithms if a.algorithms == ['equihash']][0]
print 'equihash benchmark = ',
print miners.run_benchmark(eq, devices[0], 30, 60)
logging.info('equihash benchmark = ' + str(utils.run_benchmark(eq, devices[0], 30, 60)))

dp = [a for a in exc.algorithms if a.algorithms == ['daggerhashimoto', 'pascal']][0]
print 'daggerhash-pascal benchmark = ',
print miners.run_benchmark(dp, devices[0], 30, 60)
logging.info('daggerhash-pascal benchmark = ' + str(utils.run_benchmark(dp, devices[0], 30, 60)))

exc.unload()

0 comments on commit 3a93660

Please sign in to comment.