Skip to content
Bitcoin Roots

v30.3-roots.1 · Commit 2: [PATCH 02/68] feat(runtime): preserve Roots operator controls on Core 30.3

src/rpc/server.cpp

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

File metadata
index 2edf13fd236d50629a26068a547abc65b6d6b6d1..ca84e42e613c0e1bfa708934ff389ef6632468a1 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
@@ -186,7 +186,7 @@ static RPCHelpMan uptime()
186
186
  },
187
187
  [&](const RPCHelpMan& self, const JSONRPCRequest& request) -> UniValue
188
188
  {
189
- return GetTime() - GetStartupTime();
189
+ return TicksSeconds(GetUptime());
190
190
  }
191
191
  };
192
192
  }