Skip to content

Commit

Permalink
Implement admin_dataDir for admin module (#7857)
Browse files Browse the repository at this point in the history
Co-authored-by: Lukasz Rozmej <[email protected]>
  • Loading branch information
richardgreg and LukaszRozmej authored Dec 3, 2024
1 parent e2b4946 commit 3f19aee
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public async Task Test_node_info()
}

[Test]
public async Task Test_data_dir()
public async Task Test_admin_dataDir()
{
string serialized = await RpcTest.TestSerializedRequest(_adminRpcModule, "admin_dataDir");
JsonRpcSuccessResponse response = _serializer.Deserialize<JsonRpcSuccessResponse>(serialized);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,10 @@ ResultWrapper<PeerInfo[]> admin_peers(
ResultWrapper<NodeInfo> admin_nodeInfo();


[JsonRpcMethod(Description = "Base data directory path",
IsImplemented = false)]
[JsonRpcMethod(Description = "Returns the absolute path to the node's data directory.",
ResponseDescription = "The data directory path as a string.",
ExampleResponse = "\"/path/to/datadir\"",
IsImplemented = true)]
ResultWrapper<string> admin_dataDir();


Expand Down

0 comments on commit 3f19aee

Please sign in to comment.