From c7b2007e9c9df474db9c1480772ff52d80773396 Mon Sep 17 00:00:00 2001 From: Alex Grintsvayg Date: Mon, 1 Nov 2021 14:28:07 -0400 Subject: [PATCH] fix startuptime sample location --- server.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server.go b/server.go index bbc692ff..bdec05e9 100644 --- a/server.go +++ b/server.go @@ -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,