Skip to content

Commit

Permalink
add hardfork settings to getversion (neo-project#823)
Browse files Browse the repository at this point in the history
  • Loading branch information
EdgeDLT authored Sep 15, 2023
1 parent 3e0efe6 commit 63e3ec3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/RpcServer/RpcServer.Node.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,13 @@ protected virtual JToken GetVersion(JArray _params)
json["protocol"]["maxtransactionsperblock"] = system.Settings.MaxTransactionsPerBlock;
json["protocol"]["memorypoolmaxtransactions"] = system.Settings.MemoryPoolMaxTransactions;
json["protocol"]["initialgasdistribution"] = system.Settings.InitialGasDistribution;
json["protocol"]["hardforks"] = new JArray(system.Settings.Hardforks.Select(hf =>
{
JObject forkJson = new();
forkJson["name"] = hf.Key;
forkJson["blockheight"] = hf.Value;
return forkJson;
}));
return json;
}

Expand Down

0 comments on commit 63e3ec3

Please sign in to comment.