mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-28 14:40:51 +02:00
lnwire: introduce message types for dynamic commitment negotiation
lnwire: add tests for dynamic commitment wire serialization
This commit is contained in:
committed by
Olaoluwa Osuntokun
parent
b298c84d21
commit
e5f7ed8ba1
@@ -591,6 +591,14 @@ func ReadElement(r io.Reader, element interface{}) error {
|
||||
}
|
||||
*e = pubKey
|
||||
|
||||
case *RawFeatureVector:
|
||||
f := NewRawFeatureVector()
|
||||
err = f.Decode(r)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
*e = *f
|
||||
|
||||
case **RawFeatureVector:
|
||||
f := NewRawFeatureVector()
|
||||
err = f.Decode(r)
|
||||
|
Reference in New Issue
Block a user