Ejemplo n.º 1
0
def run_mn():
    from cilantro.logger import get_logger
    from cilantro.nodes import NodeFactory
    import os
    log = get_logger("MASTERNODE FACTORY")

    ip = os.getenv('HOST_IP')  #Constants.Testnet.Masternodes[0]['ip']
    sk = masternodes[0]['sk']

    NodeFactory.run_masternode(ip=ip, signing_key=sk)
Ejemplo n.º 2
0
def start_mn():
    log = get_logger("MasternodeFactor")
    log.critical("\n***Starting Masternode\n")

    DB.set_context('{}_masternode'.format(DB_NAME))

    with DB(should_reset=True) as db:
        pass

    NodeFactory.run_masternode()
Ejemplo n.º 3
0
def run_mn():
    from cilantro.logger import get_logger
    from cilantro import Constants
    from cilantro.nodes import NodeFactory
    import os
    log = get_logger("MASTERNODE FACTORY")

    ip = os.getenv('HOST_IP')  #Constants.Testnet.Masternodes[0]['ip']

    log.critical("\n\n\nMASTERNODE BOOTING WITH IP {} AND SK {}".format(
        ip, sk))
    NodeFactory.run_masternode(ip=ip, signing_key=sk)
Ejemplo n.º 4
0
def run_mn():
    from cilantro.logger import get_logger, overwrite_logger_level
    from cilantro.nodes import NodeFactory
    import os
    import logging

    # overwrite_logger_level(logging.WARNING)
    overwrite_logger_level(21)

    ip = os.getenv('HOST_IP') #Constants.Testnet.Masternodes[0]['ip']
    sk = masternodes[0]['sk']
    NodeFactory.run_masternode(ip=ip, signing_key=sk)
Ejemplo n.º 5
0
def run_mn():
    from cilantro.logger import get_logger, overwrite_logger_level
    from cilantro.nodes import NodeFactory
    from cilantro.constants.testnet import TESTNET_MASTERNODES
    import os
    import logging

    # overwrite_logger_level(logging.WARNING)
    overwrite_logger_level(21)

    ip = os.getenv('HOST_IP')  #Constants.Testnet.Masternodes[0]['ip']
    sk = TESTNET_MASTERNODES[0]['sk']
    NodeFactory.run_masternode(ip=ip, signing_key=sk, reset_db=True)
Ejemplo n.º 6
0
def run_mn():
    from cilantro.logger import get_logger, overwrite_logger_level
    from cilantro.constants.testnet import masternodes
    from cilantro.nodes import NodeFactory
    import os
    import logging
    from cilantro.logger.base import get_logger
    log = get_logger('M')

    # overwrite_logger_level(logging.WARNING)
    # overwrite_logger_level(21)

    ip = os.getenv('HOST_IP')  #Constants.Testnet.Masternodes[0]['ip']
    sk = masternodes[0]['sk']
    NodeFactory.run_masternode(ip=ip, signing_key=sk, should_reset=True)
Ejemplo n.º 7
0
def run_mn():
    from cilantro.logger import get_logger
    from cilantro import Constants
    from cilantro.nodes import NodeFactory
    from cilantro.db import DB, DB_NAME
    import os
    log = get_logger("MASTERNODE FACTORY")

    with DB('{}_masternode'.format(DB_NAME), should_reset=True) as db:
        pass

    ip = os.getenv('HOST_IP')  #Constants.Testnet.Masternodes[0]['ip']
    sk = Constants.Testnet.Masternodes[0]['sk']

    log.critical("\n\n\nMASTERNODE BOOTING WITH IP {} AND SK {}".format(
        ip, sk))
    NodeFactory.run_masternode(ip=ip, signing_key=sk)
Ejemplo n.º 8
0
def run_mn():
    from cilantro.logger import get_logger
    from cilantro.nodes import NodeFactory
    import os, time

    log = get_logger(__name__)

    m_info = masternodes[0]
    m_info['ip'] = os.getenv('HOST_IP')

    mn = NodeFactory.run_masternode(ip=m_info['ip'], signing_key=m_info['sk'])
Ejemplo n.º 9
0
def run_mn():
    from cilantro.logger import get_logger
    from cilantro import Constants
    from cilantro.nodes import NodeFactory
    from cilantro.db import DB, DB_NAME
    import os, time

    log = get_logger(__name__)

    m_info = Constants.Testnet.Masternodes[0]
    m_info['ip'] = os.getenv('HOST_IP')

    mn = NodeFactory.run_masternode(ip=m_info['ip'], signing_key=m_info['sk'])
Ejemplo n.º 10
0
def run_mn():
    from cilantro.logger import get_logger
    from cilantro import Constants
    from cilantro.nodes import NodeFactory
    from cilantro.db import DB, DB_NAME
    import os, time

    log = get_logger("MASTERNODE FACTORY")

    sk = Constants.Testnet.Masternode.Sk
    url = 'tcp://{}:{}'.format(os.getenv('HOST_IP'),
                               Constants.Testnet.Masternode.InternalUrl[-4:])

    with DB('{}'.format(DB_NAME), should_reset=True) as db:
        pass

    log.critical("\n\n\nMASTERNODE BOOTING WITH URL {} AND SK {}".format(
        url, sk))
    mn = NodeFactory.run_masternode(ip=url, signing_key=sk)