Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Disable peer discovery if cache exists #887
This PR closes #748.
When we kill internet Wasabi cannot connect to peers and that's why after one minute it tries to discover new peers aggressively, that process uses a lot of cpu because the not IO operations happening when no internet is available.
AddressManager works as a nodes address' cache that make unnecessary to rediscover peers again and again. The discovery process is only needed the first time we run Wasabi after a clean installation.
For this reason, if we can load the peers addresses from the file (cache) we can disable the discovery mechanism.