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 of a potentially deprecated PostgresWsvCommand class
Lack of tests for PeersFileReaderImpl (not sure should I add add them or not)
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
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 line127.0.0.1:10001 bddd58404d1315e0eb27902c5d7c8eb0602c16238f005773df406bc191308929
(feel free to add more peers) and run irohad with option--peers peers