-
Notifications
You must be signed in to change notification settings - Fork 2.3k
lnwire: create new ExtraOpaqueData type for parsing TLV extensions #3966
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
9169524
b4c57eb
05ac6aa
7326c15
a048373
6a1c026
42f7ea5
72ea3e3
2e62b5c
4633731
222e3c9
574bff8
b4acf79
6002919
e652f1d
9f356b6
2bc6393
fe16832
bc73120
68f8fc7
eab6a63
e33a371
0186026
707782d
fdac829
484686d
a000aa2
8041476
ba8c1d1
eec879f
2137c0a
c518bec
ec85a9b
0055691
3741b78
092f48f
6de68ce
509f1ef
2bcdbb0
66df617
d76bcc3
79767eb
afabedd
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -724,7 +724,8 @@ func MigrateGossipMessageStoreKeys(tx kvdb.RwTx) error { | |
|
|
||
| // Serialize the message with its wire encoding. | ||
| var b bytes.Buffer | ||
| if _, err := lnwire.WriteMessage(&b, msg, 0); err != nil { | ||
| _, err := lnwire.WriteMessage(&b, msg, lnwire.ProtocolVersionTLV) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why TLV here?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hmm may have been a mistake during the rebase. Looking at it with fresh eyes though, it needs to ensure we write any extra bytes that may have been stored with the announcement. |
||
| if err != nil { | ||
| return err | ||
| } | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In 633cf78, doesn't this change in
channeldb/migration18/enclosed_codec.goneed to beProtocolVersionTLVto migrate into the new format?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You mean some portion of a commit we partially undone? They may have been the case, the end state is correct though. In any case this PR is going away in favor of a mega combined version so it can be tested all at once properly.