mirror of
https://github.com/btcsuite/btcd.git
synced 2025-03-27 02:37:10 +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")
|
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
|
// Start the peer handler which in turn starts the address and block
|
||||||
// managers.
|
// managers.
|
||||||
s.wg.Add(1)
|
s.wg.Add(1)
|
||||||
|
@ -2758,6 +2755,7 @@ func newServer(listenAddrs, agentBlacklist, agentWhitelist []string,
|
||||||
}
|
}
|
||||||
|
|
||||||
s := server{
|
s := server{
|
||||||
|
startupTime: time.Now().Unix(),
|
||||||
chainParams: chainParams,
|
chainParams: chainParams,
|
||||||
addrManager: amgr,
|
addrManager: amgr,
|
||||||
newPeers: make(chan *serverPeer, cfg.MaxPeers),
|
newPeers: make(chan *serverPeer, cfg.MaxPeers),
|
||||||
|
|
Loading…
Add table
Reference in a new issue