Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/Plugins/RpcServer/RpcServer.Node.cs
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,8 @@ protected internal virtual JToken GetVersion(JArray _params)
forkJson["blockheight"] = hf.Value;
return forkJson;
}));
protocol["standbycommittee"] = new JArray(system.Settings.StandbyCommittee.Select(u => new JString(u.ToString())));
protocol["seedlist"] = new JArray(system.Settings.SeedList.Select(u => new JString(u)));
json["rpc"] = rpc;
json["protocol"] = protocol;
return json;
Expand Down
2 changes: 2 additions & 0 deletions tests/Neo.Plugins.RpcServer.Tests/UT_RpcServer.Node.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ public void TestGetVersion()
Assert.IsTrue(protocol.ContainsProperty("maxvaliduntilblockincrement"));
Assert.IsTrue(protocol.ContainsProperty("maxtransactionsperblock"));
Assert.IsTrue(protocol.ContainsProperty("memorypoolmaxtransactions"));
Assert.IsTrue(protocol.ContainsProperty("standbycommittee"));
Assert.IsTrue(protocol.ContainsProperty("seedlist"));
}

#region SendRawTransaction Tests
Expand Down