Пример #1
0
def run():
    """Main driver function"""
    args = parse_config()
    
    #Setup debugging output
    bitHopper.setup_logging(logging.DEBUG if args.debug else logging.INFO)
        
    #Setup mining port
    bitHopper.setup_miner(port = args.mine_port, host=args.mine_localname)
    
    #Set up the control website
    bitHopper.setup_control(port = args.config_port, host=args.config_localname)
    
    #Setup Custom Pools
    bitHopper.custom_pools()

    while True:
        gevent.sleep(100)
Пример #2
0
def run():
    """Main driver function"""
    args = parse_config()

    #Setup debugging output
    bitHopper.setup_logging(logging.DEBUG if args.debug else logging.INFO)

    #Setup mining port
    bitHopper.setup_miner(port=args.mine_port, host=args.mine_localname)

    #Set up the control website
    bitHopper.setup_control(port=args.config_port, host=args.config_localname)

    #Setup Custom Pools
    bitHopper.custom_pools()

    while True:
        gevent.sleep(100)
Пример #3
0
import unittest, json, bitHopper, btcnet_info, httplib2, json

import bitHopper
import bitHopper.Logic
import bitHopper.Configuration.Workers
import bitHopper.Configuration.Pools
import bitHopper.Tracking.speed

import gevent

import bitHopper
bitHopper.setup_logging()


class FakePool():
    """Class for faking pool information from btnet"""
    def __init__(self):
        self.payout_scheme = 'prop'
        self.coin = 'btc'
        self.shares = "123"

    def __getitem__(self, key):
        return getattr(self, key, None)


import btcnet_info


class CustomPools(unittest.TestCase):
    @classmethod
    def setUpClass(self):
Пример #4
0
                    
    parser.add_argument('--mine_localname', metavar='cp', type=str, 
                    default='', help='Mining IP address to bind to')
                    
    parser.add_argument('--config_localname', metavar='cp', type=str, 
                    default='', help='Configuration IP address to bind to')
                    
    parser.add_argument('--debug', action="store_true", default=False)
                    
    return parser.parse_args()

if __name__ == "__main__":

    args = parse_config()
    
    #Setup debugging output
    bitHopper.setup_logging(logging.DEBUG if args.debug else logging.INFO)
        
    #Setup mining port
    bitHopper.setup_miner(port = args.mine_port, host=args.mine_localname)
    
    #Set up the control website
    bitHopper.setup_control(port = args.config_port, host=args.config_localname)
    
    #Setup Custom Pools
    bitHopper.custom_pools()

    while True:
        gevent.sleep(100)

Пример #5
0
import unittest, json, bitHopper, btcnet_info, httplib2, json

import bitHopper
import bitHopper.Logic
import bitHopper.Configuration.Workers
import bitHopper.Configuration.Pools
import bitHopper.Tracking.speed

import gevent

import bitHopper
bitHopper.setup_logging()

class FakePool():
    """Class for faking pool information from btnet"""    
    def __init__(self):
        self.payout_scheme = 'prop'
        self.coin = 'btc'
        self.shares = "123"
        
    def __getitem__(self, key):
        return getattr(self, key, None)   
        
import btcnet_info

class CustomPools(unittest.TestCase):
    @classmethod
    def setUpClass(self):
        import fake_pool
        #fake_pool.initialize()
        gevent.sleep(0)
Пример #6
0
    parser.add_argument('--config_localname',
                        metavar='cp',
                        type=str,
                        default='',
                        help='Configuration IP address to bind to')

    parser.add_argument('--debug', action="store_true", default=False)

    return parser.parse_args()


if __name__ == "__main__":

    args = parse_config()

    #Setup debugging output
    bitHopper.setup_logging(logging.DEBUG if args.debug else logging.INFO)

    #Setup mining port
    bitHopper.setup_miner(port=args.mine_port, host=args.mine_localname)

    #Set up the control website
    bitHopper.setup_control(port=args.config_port, host=args.config_localname)

    #Setup Custom Pools
    bitHopper.custom_pools()

    while True:
        gevent.sleep(100)