Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
erikzhang committed May 17, 2019
1 parent 5830fc6 commit cd75d0d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions neo/NeoSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class NeoSystem : IDisposable
public RpcServer RpcServer { get; private set; }

private readonly Store store;
private ChannelsStartConfig start_message = null;
private ChannelsConfig start_message = null;
private bool suspend = false;

public NeoSystem(Store store)
Expand Down Expand Up @@ -73,7 +73,7 @@ public void StartConsensus(Wallet wallet, Store consensus_store = null, bool ign
Consensus.Tell(new ConsensusService.Start { IgnoreRecoveryLogs = ignoreRecoveryLogs }, Blockchain);
}

public void StartNode(ChannelsStartConfig config)
public void StartNode(ChannelsConfig config)
{
start_message = config;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Neo.Network.P2P
{
public class ChannelsStartConfig
public class ChannelsConfig
{
/// <summary>
/// Tcp configuration
Expand Down
6 changes: 3 additions & 3 deletions neo/Network/P2P/Peer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ protected override void OnReceive(object message)
{
switch (message)
{
case ChannelsStartConfig start:
OnStart(start);
case ChannelsConfig config:
OnStart(config);
break;
case Timer _:
OnTimer();
Expand Down Expand Up @@ -132,7 +132,7 @@ protected override void OnReceive(object message)
}
}

private void OnStart(ChannelsStartConfig config)
private void OnStart(ChannelsConfig config)
{
ListenerTcpPort = config.Tcp?.Port ?? 0;
ListenerWsPort = config.WebSocket?.Port ?? 0;
Expand Down

0 comments on commit cd75d0d

Please sign in to comment.