Skip to content
Bitcoin Roots

v29.4-roots.3 · Commit 2: [PATCH 02/30] runtime: preserve shared operator controls

src/rpc/server.cpp

Before: src/rpc/server.cpp · After: src/rpc/server.cpp

File metadata
index 34f19df25643ebb72dda97735a3b383ef2aeca89..7858e59e6b569ca7699e51185bb1ef731abe6eb3 100644

Download original patch · Release notes

Diff rows 1–8 of 8. Line numbers refer to the original before/after files.

+ Added− RemovedUnmarked lines are context.

Scroll the code area horizontally to read long lines. The two line-number columns refer to before and after.

src/rpc/server.cpp CHANGED
@@ -192,7 +192,7 @@ static RPCHelpMan uptime()
192
192
  },
193
193
  [&](const RPCHelpMan& self, const JSONRPCRequest& request) -> UniValue
194
194
  {
195
- return GetTime() - GetStartupTime();
195
+ return TicksSeconds(GetUptime());
196
196
  }
197
197
  };
198
198
  }