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
This commit is contained in:
cec489 2024-06-27 12:36:29 -05:00 committed by GitHub
parent 139669066c
commit d881c686e6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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()
}