Search in sources :

Example 1 with SimpleNodeChannel

use of co.rsk.net.simples.SimpleNodeChannel in project rskj by rsksmart.

the class SimpleChannelManager method getMessageChannel.

public MessageChannel getMessageChannel(SimpleNode sender, SimpleNode receiver) {
    MessageChannel channel = simpleChannels.get(sender.getNodeID());
    if (channel != null) {
        return channel;
    }
    channel = new SimpleNodeChannel(sender, receiver);
    simpleChannels.put(channel.getPeerNodeID(), channel);
    return channel;
}
Also used : MessageChannel(co.rsk.net.MessageChannel) SimpleNodeChannel(co.rsk.net.simples.SimpleNodeChannel)

Aggregations

MessageChannel (co.rsk.net.MessageChannel)1 SimpleNodeChannel (co.rsk.net.simples.SimpleNodeChannel)1