hyperledger / iroha

Iroha - A simple, enterprise-grade decentralized ledger
https://wiki.hyperledger.org/display/iroha
Apache License 2.0
433 stars 277 forks source link

🦟 [BUG] Iroha-swarm is broken: unhandled non-option argument '2' #3348

Open 6r1d opened 1 year ago

6r1d commented 1 year ago

OS and Environment

Ubuntu 20.04.5, Docker 20.10.23, build 7155243

Minimum working example / Steps to reproduce

Use the initial command from the docs to create two peers.

1) Create a docker network using "docker network create iroha-network" 2) Created a PostgreSQL container using:

docker run --name some-postgres \
-e POSTGRES_USER=postgres \
-e POSTGRES_PASSWORD=mysecretpassword \
-p 5432:5432 \
--network=iroha-network \
-d postgres:9.5 \
-c 'max_prepared_transactions=100'

3) Created a block store using docker volume create blockstore 4) Docs -> iroha-swarm 5) Clone the iroha-swarm repository 6) Run the commands to generate and run a network of 2 iroha nodes locally

Actual result

./iroha-swarm.sh 2 --localhost

"ERROR !!! Unhandled non-option argument '2'

Expected result

The swarm config is generated normally.

6r1d commented 1 year ago

As commented by @baziorek, the current command should probably be --peers_count=2.