Skip to content

Commit

Permalink
Fix the btcctl uptime command
Browse files Browse the repository at this point in the history
commit 0b2998b
Author: cec489 <[email protected]>
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 ae6c125
Author: cec489 <[email protected]>
Date:   Mon Jun 24 19:15:23 2024 +0000

    Fix the btcctl uptime command by moving the setting of startupTime
  • Loading branch information
cec489 authored Jun 27, 2024
1 parent 1396690 commit d881c68
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}

Expand Down

0 comments on commit d881c68

Please sign in to comment.