channeldb: add test for new channel closure persistence

This commit is contained in:
Olaoluwa Osuntokun
2017-05-04 15:21:56 -07:00
parent 826dbbd1f7
commit 35fd800083
2 changed files with 118 additions and 2 deletions

View File

@@ -81,4 +81,8 @@ var (
// ErrUnknownAddressType is returned when a node's addressType is not
// an expected value.
ErrUnknownAddressType = fmt.Errorf("address type cannot be resolved")
// ErrNoClosedChannels is returned when a node is queries for all the
// channels it has closed, but it hasn't yet closed any channels.
ErrNoClosedChannels = fmt.Errorf("no channel have been closed yet")
)