mit-dci / lit

Lightning Network node software
MIT License
551 stars 119 forks source link

Batch connections on startup #313

Closed Varunram closed 6 years ago

Varunram commented 6 years ago

On startup, we only connect to a single node and if it fails, we proceed to dial the next node in listOfNodes. Instead, we can batch connections and open parallel connections with all of them and simply drop a peer if it doesn't respond / does something weird.

This is also configurable via a command line option maxConnections or -m. Issue: #275

Varunram commented 6 years ago

retest this please

Varunram commented 6 years ago

The right way to do this would be to have concurrent connections since dropping connections often would end up in lit nodes getting banned by bitcoin nodes.

Varunram commented 6 years ago

Closed in favour of #324 which does concurrent connections.