Skip to content

Commit

Permalink
Remove pre-channel states
Browse files Browse the repository at this point in the history
These states don't have commitments, only exist before the existence of
a channel is confirmed, don't need to be saved in a wallet, and can only
handle one specific ChannelCommand each.

As such, it doesn't make much sense to have them be part of
ChannelState. They can instead be seperate types which exist prior to the
creation of a channel and which have specialized methods for performing
the single operation which they can handle.
  • Loading branch information
canndrew committed Dec 10, 2020
1 parent 3de0b3e commit bb70f99
Show file tree
Hide file tree
Showing 3 changed files with 398 additions and 218 deletions.
Loading

0 comments on commit bb70f99

Please sign in to comment.