...
--config
- path to config file, in the config postgres is choosen, so it must be running--keypair_name
- path to private and public keys of a the node-genesis_block
- path to genesis block (first block of network)-reuse_state
- not create network from beginning but use existing-overwrite_ledger -drop_state
- DANGEROUS - it will erase the network (both database and files)
To run irohad
with configuration arguments as above You need first to change something in config file or change config + have working postgres DB.
A) Using Iroha with postgres db:
I suggest to use docker instance. To create instance with user&&password compatible with sample config you need command (it needs to be run in host):
docker run --name postgres_tmp \
-e POSTGRES_USER=postgres \
-e POSTGRES_PASSWORD=mysecretpassword \
--network=host \
-d postgres \
-c 'max_prepared_transactions=100' \
-c 'port=5432'
The next thing is to change db's host in config file, you can do its with:
sed -i 's/some-postgres/localhost/g' example/config.docker
Then you can just run irohad
command.