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. Before is on the left; after is on the right. Unified view fits narrow screens more easily.
src/rpc/server.cpp
CHANGED
|
@@ -186,7 +186,7 @@ static RPCHelpMan uptime()
|
|
| 186 |
},
|
| 187 |
[&](const RPCHelpMan& self, const JSONRPCRequest& request) -> UniValue
|
| 188 |
{
|
| 189 |
-
return GetTime() - GetStartupTime();
|
| 190 |
}
|
| 191 |
};
|
| 192 |
}
|
|
|
|
| 186 |
},
|
| 187 |
[&](const RPCHelpMan& self, const JSONRPCRequest& request) -> UniValue
|
| 188 |
{
|
| 189 |
+
return TicksSeconds(GetUptime());
|
| 190 |
}
|
| 191 |
};
|
| 192 |
}
|