-
Notifications
You must be signed in to change notification settings - Fork 412
Fix backwards compat for blocked_monitor_updates and finally kill vec_type
#2400
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
Merged
TheBlueMatt
merged 10 commits into
lightningdevkit:main
from
TheBlueMatt:2023-07-kill-vec_type
Jul 11, 2023
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
46913da
Fix backwards compat for `blocked_monitor_updates`
TheBlueMatt 32846d3
Add a `required_vec` TLV deserialization type
TheBlueMatt a04bf84
Convert some `vec_type` TLVs to `required_vec`
TheBlueMatt 884160c
Convert `Event` vec storage away from `vec_type`
TheBlueMatt 739ffe1
Migrate `chan_utils` `vec_type` TLVs to required/optional
TheBlueMatt 6fbeea0
Convert routing `vec_type `TLV writes to other TLV types
TheBlueMatt e6eb654
Replace `vec_type` TLVs in channel/manager with required/optional
TheBlueMatt 4b7631c
Convert `channelmonitor` `vec_type` TLV writes to required/optional
TheBlueMatt 907ea20
Drop `vec_type` TLV handling entirely
TheBlueMatt d83390c
Document some TLV write/read formats
TheBlueMatt File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6781,11 +6781,11 @@ impl<Signer: WriteableEcdsaChannelSigner> Writeable for Channel<Signer> { | |
(5, self.context.config, required), | ||
(6, serialized_holder_htlc_max_in_flight, option), | ||
(7, self.context.shutdown_scriptpubkey, option), | ||
(8, self.context.blocked_monitor_updates, vec_type), | ||
(8, self.context.blocked_monitor_updates, optional_vec), | ||
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. Oops :( Good thing we're getting rid of |
||
(9, self.context.target_closing_feerate_sats_per_kw, option), | ||
(11, self.context.monitor_pending_finalized_fulfills, vec_type), | ||
(11, self.context.monitor_pending_finalized_fulfills, required_vec), | ||
(13, self.context.channel_creation_height, required), | ||
(15, preimages, vec_type), | ||
(15, preimages, required_vec), | ||
(17, self.context.announcement_sigs_state, required), | ||
(19, self.context.latest_inbound_scid_alias, option), | ||
(21, self.context.outbound_scid_alias, required), | ||
|
@@ -7089,11 +7089,11 @@ impl<'a, 'b, 'c, ES: Deref, SP: Deref> ReadableArgs<(&'a ES, &'b SP, u32, &'c Ch | |
(5, config, option), // Note that if none is provided we will *not* overwrite the existing one. | ||
(6, holder_max_htlc_value_in_flight_msat, option), | ||
(7, shutdown_scriptpubkey, option), | ||
(8, blocked_monitor_updates, vec_type), | ||
(8, blocked_monitor_updates, optional_vec), | ||
(9, target_closing_feerate_sats_per_kw, option), | ||
(11, monitor_pending_finalized_fulfills, vec_type), | ||
(11, monitor_pending_finalized_fulfills, optional_vec), | ||
(13, channel_creation_height, option), | ||
(15, preimages_opt, vec_type), | ||
(15, preimages_opt, optional_vec), | ||
(17, announcement_sigs_state, option), | ||
(19, latest_inbound_scid_alias, option), | ||
(21, outbound_scid_alias, option), | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Just curious, how did you find all the commits you referenced when checking if certain fields had been written as required for a while?
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.
git blame
and some elbow grease :)