lnwire: fix serialization order of global+local features in Init msg

Fixes #428.
This commit is contained in:
Olaoluwa Osuntokun
2017-11-17 13:26:39 -08:00
parent 4168c97a27
commit 53f1743be0
2 changed files with 14 additions and 14 deletions

View File

@@ -34,8 +34,8 @@ var _ Message = (*Init)(nil)
// This is part of the lnwire.Message interface.
func (msg *Init) Decode(r io.Reader, pver uint32) error {
return readElements(r,
&msg.LocalFeatures,
&msg.GlobalFeatures,
&msg.LocalFeatures,
)
}
@@ -45,8 +45,8 @@ func (msg *Init) Decode(r io.Reader, pver uint32) error {
// This is part of the lnwire.Message interface.
func (msg *Init) Encode(w io.Writer, pver uint32) error {
return writeElements(w,
msg.LocalFeatures,
msg.GlobalFeatures,
msg.LocalFeatures,
)
}