Open oberstet opened 4 years ago
note that formally this doesn't matter (it is not a bug ..), but it is highly confusing and a trap in practice. we should fix it soon before it's too late ..
the fix is changing to
/// All XBR state channel types defined.
enum ChannelType { NULL, PAYING, PAYMENT }
that way ActorType.PROVIDER == ChannelType.PAYING == 1
that is, eg actor
ActorType.PROVIDER == 1
, but the correpsonding channel hasChannelType.PAYING == 2