peer: integrate new channelCloser state machine for co-cop channel closes

In this commit, we refactor the existing channel closure logic for
co-op closes to use the new channelCloser state machine. This results
in a large degree of deleted code as all the logic is now centralized
to a single state machine.
This commit is contained in:
Olaoluwa Osuntokun 2017-11-23 01:21:07 -06:00
parent 1cf1d250b3
commit 259a01b29d
No known key found for this signature in database
GPG Key ID: 964EA263DD637C21
1 changed files with 247 additions and 595 deletions

842
peer.go

File diff suppressed because it is too large Load Diff