mirror of
https://github.com/PeernetOfficial/core.git
synced 2026-07-22 12:47:51 +01:00
New flag: IsRootPeer. Rearranged initialization priority (initNetwork should always be last).
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user