static NodeState GetNodeState(ChannelState state)
{
switch (state)
{
case(ChannelState.OPENING):
return NodeState.Inactive;
case (ChannelState.WAITING):
return NodeState.Failed;
case (ChannelState.OPEN):
return NodeState.Active;
default:
return NodeState.Inactive;
}
}