channeldb: Fix dropped error in migrations test

channeldb: Fix dropped error and wrap with context

channeldb: Fix empty error condition in waitingproof test

channeldb: Fix empty error condition in codec

channeldb: Wrap error in context
This commit is contained in:
Lars Lehtonen committed 2019-09-12 15:49:21 +00:00
1 parent e61ec3a46d
commit 2f51ccd10b
4 files changed
+8 -1

No files matched your search

+1
View File
@@ -76,6 +76,7 @@ func WriteElement(w io.Writer, element interface{}) error {
if e.PubKey != nil {
if err := binary.Write(w, byteOrder, true); err != nil {
return fmt.Errorf("error writing serialized element: %s", err)
}
return WriteElement(w, e.PubKey)