New flag: IsRootPeer. Rearranged initialization priority (initNetwork should always be last).

This commit is contained in:
Kleissner
2021-04-25 05:34:00 +02:00
parent 35f50230cd
commit 250f60a4b6
3 changed files with 9 additions and 4 deletions

View File

@@ -33,6 +33,7 @@ type rootPeer struct {
var rootPeers map[[btcec.PubKeyBytesLenCompressed]byte]*rootPeer
// initSeedList loads the seed list from the config
// Note: This should be called before any network listening function so that incoming root peers are properly recognized.
func initSeedList() {
rootPeers = make(map[[btcec.PubKeyBytesLenCompressed]byte]*rootPeer)