From ac4ba6b95e275a0fddd0a2f88c9a7d882a7c8b0a Mon Sep 17 00:00:00 2001 From: Igor Machado Date: Sat, 29 Jun 2019 20:20:30 -0300 Subject: [PATCH] simplify --- neo/Network/P2P/ProtocolHandler.cs | 1 - neo/Network/P2P/RemoteNode.cs | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/neo/Network/P2P/ProtocolHandler.cs b/neo/Network/P2P/ProtocolHandler.cs index bfdc9890e4..7f9821709b 100644 --- a/neo/Network/P2P/ProtocolHandler.cs +++ b/neo/Network/P2P/ProtocolHandler.cs @@ -27,7 +27,6 @@ public class SetFilter { public BloomFilter Filter; } private bool verack = false; private BloomFilter bloom_filter; - public ProtocolHandler(NeoSystem system) { this.system = system; diff --git a/neo/Network/P2P/RemoteNode.cs b/neo/Network/P2P/RemoteNode.cs index aeeb8ebce7..32288ed9a4 100644 --- a/neo/Network/P2P/RemoteNode.cs +++ b/neo/Network/P2P/RemoteNode.cs @@ -224,7 +224,7 @@ protected override void PostStop() internal static Props Props(NeoSystem system, object connection, IPEndPoint remote, IPEndPoint local) { - IActorRef protocol = system.ActorSystem.ActorOf(ProtocolHandler.Props(system)); + var protocol = system.ActorSystem.ActorOf(ProtocolHandler.Props(system)); return Akka.Actor.Props.Create(() => new RemoteNode(system, connection, remote, local, protocol)).WithMailbox("remote-node-mailbox"); }