decred / dcrlnd

Decred Lightning Network Daemon ⚡️
MIT License
36 stars 24 forks source link

discovery: Disable DNS boostrapper #30

Closed matheusd closed 5 years ago

matheusd commented 5 years ago

This disables the dns bootstrapper on current dcrlnd networks since the corresponding seeders aren't up yet.

It does so by clearing the hard coded DNS seeder addresses and adding a special case that exits early if no addresses are returned by the bootstrapping process.

It also fixes a logic error condition where bootstrapping wasn't re-enabled after the backoff period after the initial bootstrapping phase.