multi: fix dropped errors

This commit is contained in:
Joost Jager
2019-09-13 09:48:43 +02:00
parent ffb8c0cfc3
commit 1e0ed1e52f
6 changed files with 10 additions and 10 deletions

View File

@@ -961,7 +961,7 @@ func decodeIncomingResolution(r io.Reader, h *lnwallet.IncomingHtlcResolution) e
func encodeOutgoingResolution(w io.Writer, o *lnwallet.OutgoingHtlcResolution) error {
if err := binary.Write(w, endian, o.Expiry); err != nil {
return nil
return err
}
if o.SignedTimeoutTx == nil {
@@ -979,7 +979,7 @@ func encodeOutgoingResolution(w io.Writer, o *lnwallet.OutgoingHtlcResolution) e
}
if err := binary.Write(w, endian, o.CsvDelay); err != nil {
return nil
return err
}
if _, err := w.Write(o.ClaimOutpoint.Hash[:]); err != nil {
return err