From d881c686e61db35e332fb0309178152dac589b03 Mon Sep 17 00:00:00 2001 From: cec489 <173723251+cec489@users.noreply.github.com> Date: Thu, 27 Jun 2024 12:36:29 -0500 Subject: [PATCH] Fix the btcctl uptime command commit 0b2998b7f279d3aef4d83415dae26948f5a6bdf4 Author: cec489 <173723251+cec489@users.noreply.github.com> Date: Mon Jun 24 20:01:13 2024 +0000 A cleaner fix is to set the startTime in the server Start() function which is where the server is actually started. commit ae6c1256981befb43972e83a086ea663df629873 Author: cec489 <173723251+cec489@users.noreply.github.com> Date: Mon Jun 24 19:15:23 2024 +0000 Fix the btcctl uptime command by moving the setting of startupTime --- server.go | 1 + 1 file changed, 1 insertion(+) diff --git a/server.go b/server.go index 9fca2db20c..66794e4bb7 100644 --- a/server.go +++ b/server.go @@ -2483,6 +2483,7 @@ func (s *server) Start() { // the RPC server are rebroadcast until being included in a block. go s.rebroadcastHandler() + s.rpcServer.cfg.StartupTime = s.startupTime s.rpcServer.Start() }