fix startuptime sample location

This commit is contained in:
Alex Grintsvayg 2021-11-01 14:28:07 -04:00
parent c45f4ce9f9
commit c7b2007e9c
No known key found for this signature in database
GPG key ID: AEB3F089F86A22B5

View file

@ -2628,6 +2628,8 @@ func newServer(listenAddrs, agentBlacklist, agentWhitelist []string,
db database.DB, chainParams *chaincfg.Params,
interrupt <-chan struct{}) (*server, error) {
startupTime := time.Now()
services := defaultServices
if cfg.NoPeerBloomFilters {
services &^= wire.SFNodeBloom
@ -2971,7 +2973,7 @@ func newServer(listenAddrs, agentBlacklist, agentWhitelist []string,
s.rpcServer, err = newRPCServer(&rpcserverConfig{
Listeners: rpcListeners,
StartupTime: time.Now().Unix(),
StartupTime: startupTime.Unix(),
ConnMgr: &rpcConnManager{&s},
SyncMgr: &rpcSyncMgr{&s, s.syncManager},
TimeSource: s.timeSource,