paych: Reserve flag for add-funds cli

This commit is contained in:
Łukasz Magiera
2022-01-20 18:16:00 +01:00
parent 8f6f21c94c
commit ff8b95df93
2 changed files with 12 additions and 3 deletions
+6
View File
@@ -502,5 +502,11 @@ func unmarshallChannelInfo(stored *ChannelInfo, value []byte) (*ChannelInfo, err
stored.Channel = nil
}
// backwards compat
if stored.AvailableAmount.Int == nil {
stored.AvailableAmount = types.NewInt(0)
stored.PendingAvailableAmount = types.NewInt(0)
}
return stored, nil
}