mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-29 15:11:09 +02:00
lnwire: add *OpaqueAddrs case in WriteElements
And then expand the chanbackup unit tests to cover such a case.
This commit is contained in:
@@ -348,6 +348,11 @@ func WriteElement(w *bytes.Buffer, element interface{}) error {
|
||||
return err
|
||||
}
|
||||
|
||||
case *OpaqueAddrs:
|
||||
if err := WriteOpaqueAddrs(w, e); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
case []net.Addr:
|
||||
// First, we'll encode all the addresses into an intermediate
|
||||
// buffer. We need to do this in order to compute the total
|
||||
|
Reference in New Issue
Block a user