You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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`