hyperledger-archives / iroha

Iroha - A simple, decentralized ledger
http://iroha.tech
Apache License 2.0
988 stars 298 forks source link

Add option to load peers from a file on startup #2232

Open luckychess opened 5 years ago

luckychess commented 5 years ago

Description of the Change

Pull request adds command line option to load peers list from a file on startup.

Benefits

It could be useful in scenarios when many peers in a current network state are malicious.

Possible Drawbacks

Usage Examples or Tests

Create file peers with line 127.0.0.1:10001 bddd58404d1315e0eb27902c5d7c8eb0602c16238f005773df406bc191308929 (feel free to add more peers) and run irohad with option --peers peers