Skip to content
sadov edited this page Feb 22, 2018 · 2 revisions

Command Line Interface (CLI)

The main tools for running of nodes is blockchain.py utility. It's implements CLI for nodes running and handling of REST API requests to nodes. Supported options:

Parameters

    '-p', '--port', default=5000, type=int, help='port to listen on'
    '-k', '--kwport', default=55554, type=int, help='port keyworker to listen on'
    '-i', '--ip', default='127.0.0.1', help='ip keyworker to listen on'
    '-d', '--db', default='', help='db file, if not passed, then no persistance'
    '-v', '--variant', default='pow', help='variant of blockchain "pow[:difficulty]" or "quant", where:
          * pow[:difficulty] -- POWBlockChain with possibility of "difficulty" setting (4 by default)
          * quant -- QuantumBlockChain

For QuantumBlockChain, the keyworker service must be started.

Examples

* `$ pipenv run python blockchain.py` 
* `$ pipenv run python blockchain.py -p 5001 -d pow.db -v pow:2`
* `$ pipenv run python blockchain.py --db quant.db --variant quant --port 5002`
Clone this wiki locally