Skip to content

Commit

Permalink
Expose RpcServer.MaxGasInvoke
Browse files Browse the repository at this point in the history
  • Loading branch information
erikzhang committed Mar 14, 2019
1 parent cb90174 commit bc14798
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions neo/Network/RPC/RpcServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,16 @@ namespace Neo.Network.RPC
public sealed class RpcServer : IDisposable
{
public Wallet Wallet { get; set; }
public Fixed8 MaxGasInvoke { get; }

private IWebHost host;
private Fixed8 maxGasInvoke;
private readonly NeoSystem system;

public RpcServer(NeoSystem system, Wallet wallet = null, Fixed8 maxGasInvoke = default(Fixed8))
{
this.system = system;
this.Wallet = wallet;
this.maxGasInvoke = maxGasInvoke;
this.MaxGasInvoke = maxGasInvoke;
}

private static JObject CreateErrorResponse(JObject id, int code, string message, JObject data = null)
Expand Down Expand Up @@ -73,7 +73,7 @@ public void Dispose()

private JObject GetInvokeResult(byte[] script)
{
ApplicationEngine engine = ApplicationEngine.Run(script, extraGAS: maxGasInvoke);
ApplicationEngine engine = ApplicationEngine.Run(script, extraGAS: MaxGasInvoke);
JObject json = new JObject();
json["script"] = script.ToHexString();
json["state"] = engine.State;
Expand Down

0 comments on commit bc14798

Please sign in to comment.