Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

merge #8

Merged
merged 12 commits into from
Dec 11, 2019
Prev Previous commit
Next Next commit
Remove RPC (neo-project#1340)
  • Loading branch information
erikzhang committed Dec 7, 2019
commit ab5b0516598a6d95eef8da8f518eae5764232093
11 changes: 0 additions & 11 deletions src/neo/NeoSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@
using Neo.Consensus;
using Neo.Ledger;
using Neo.Network.P2P;
using Neo.Network.RPC;
using Neo.Persistence;
using Neo.Plugins;
using Neo.Wallets;
using System;
using System.Net;

namespace Neo
{
Expand All @@ -24,7 +22,6 @@ public class NeoSystem : IDisposable
public IActorRef LocalNode { get; }
internal IActorRef TaskManager { get; }
public IActorRef Consensus { get; private set; }
public RpcServer RpcServer { get; private set; }

private readonly IStore store;
private ChannelsConfig start_message = null;
Expand All @@ -47,7 +44,6 @@ public void Dispose()
{
foreach (var p in Plugin.Plugins)
p.Dispose();
RpcServer?.Dispose();
EnsureStoped(LocalNode);
// Dispose will call ActorSystem.Terminate()
ActorSystem.Dispose();
Expand Down Expand Up @@ -90,13 +86,6 @@ public void StartNode(ChannelsConfig config)
}
}

public void StartRpc(IPAddress bindAddress, int port, Wallet wallet = null, string sslCert = null, string password = null,
string[] trustedAuthorities = null, long maxGasInvoke = default)
{
RpcServer = new RpcServer(this, wallet, maxGasInvoke);
RpcServer.Start(bindAddress, port, sslCert, password, trustedAuthorities);
}

internal void SuspendNodeStartup()
{
suspend = true;
Expand Down
66 changes: 0 additions & 66 deletions src/neo/Network/RPC/ContractClient.cs

This file was deleted.

38 changes: 0 additions & 38 deletions src/neo/Network/RPC/Helper.cs

This file was deleted.

37 changes: 0 additions & 37 deletions src/neo/Network/RPC/Models/RpcBlock.cs

This file was deleted.

37 changes: 0 additions & 37 deletions src/neo/Network/RPC/Models/RpcBlockHeader.cs

This file was deleted.

60 changes: 0 additions & 60 deletions src/neo/Network/RPC/Models/RpcInvokeResult.cs

This file was deleted.

57 changes: 0 additions & 57 deletions src/neo/Network/RPC/Models/RpcNep5Balances.cs

This file was deleted.

15 changes: 0 additions & 15 deletions src/neo/Network/RPC/Models/RpcNep5TokenInfo.cs

This file was deleted.

Loading