Fix a problem for the bootstrap nodes

connectToNetwork is executed for the bootstrap node as well, but
it should not quit when peers are not yet present.
This commit is contained in:
Zahary Karadjov 2019-06-28 14:55:21 +03:00
parent 1ce459bcdb
commit 0d37ed7a2a
No known key found for this signature in database
GPG Key ID: C8936F8A3073D609
1 changed files with 1 additions and 1 deletions

View File

@ -206,7 +206,7 @@ else:
except PeerDisconnected: except PeerDisconnected:
error "Failed to connect to bootstrap node", node = bootstrapNode error "Failed to connect to bootstrap node", node = bootstrapNode
if connected == false: if bootstrapNodes.len > 0 and connected == false:
fatal "Failed to connect to any bootstrap node. Quitting." fatal "Failed to connect to any bootstrap node. Quitting."
quit 1 quit 1