public NetworkPacketSwitch(NodeConfig nodeConfig, NodeState nodeState, GlobalConfiguration globalConfiguration) { this.nodeConfig = nodeConfig; this.nodeState = nodeState; this.globalConfiguration = globalConfiguration; network = new SecureNetwork(nodeConfig, nodeState); network.PacketReceived += network_PacketReceived; network.Initialize(); }
public TransactionStreamHandler(SecureNetwork network, NodeState nodeState) { this.network = network; this.nodeState = nodeState; }