Skip to content

Commit

Permalink
Remove RPC (neo-project#1340)
Browse files Browse the repository at this point in the history
  • Loading branch information
erikzhang authored and Luchuan committed Jan 10, 2020
1 parent eaf2418 commit da1da55
Show file tree
Hide file tree
Showing 47 changed files with 0 additions and 3,978 deletions.
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

0 comments on commit da1da55

Please sign in to comment.