-
Notifications
You must be signed in to change notification settings - Fork 5
CLI
sadov edited this page Feb 22, 2018
·
2 revisions
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:
'-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.
* `$ 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`