mirror of
https://github.com/btcsuite/btcd.git
synced 2025-03-25 17:13:44 +01:00
Merge 0ec249be55
into 4f4ea81776
This commit is contained in:
commit
21fd0b7409
1 changed files with 1 additions and 3 deletions
|
@ -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),
|
||||
|
|
Loading…
Add table
Reference in a new issue