This commit is contained in:
swdee 2025-03-20 12:17:21 +01:00 committed by GitHub
commit 21fd0b7409
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2463,9 +2463,6 @@ func (s *server) Start() {
srvrLog.Trace("Starting server")
// Server startup time. Used for the uptime command for uptime calculation.
s.startupTime = time.Now().Unix()
// Start the peer handler which in turn starts the address and block
// managers.
s.wg.Add(1)
@ -2758,6 +2755,7 @@ func newServer(listenAddrs, agentBlacklist, agentWhitelist []string,
}
s := server{
startupTime: time.Now().Unix(),
chainParams: chainParams,
addrManager: amgr,
newPeers: make(chan *serverPeer, cfg.MaxPeers),