Skip to content

Conversation

@sputn1ck
Copy link
Member

@sputn1ck sputn1ck commented May 19, 2022

This PR adds a check to reject unsupported address formats such as P2PK (e.g. node pubkeys) or P2TR addresses

Should I add the fix to the release_notes.md?

references lightninglabs/lightning-terminal#368

@sputn1ck sputn1ck requested review from arshbot and guggero May 19, 2022 17:51
@sputn1ck sputn1ck force-pushed the check_p2pk_dest branch 3 times, most recently from f2cf29f to ec9c071 Compare May 19, 2022 20:52
@sputn1ck sputn1ck requested a review from guggero May 19, 2022 21:01
Copy link
Contributor

@guggero guggero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only a style nit left, everything else looks good to me. Thanks for the quick fix!

@sputn1ck sputn1ck requested a review from guggero May 20, 2022 08:20
This commit adds a check to reject unsupported address
formats such as P2PK or P2TR addresses
Copy link
Contributor

@arshbot arshbot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!


// Check that the provided destination address is a supported
// address format.
switch sweepAddr.(type) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very clean!

@yyforyongyu yyforyongyu merged commit e98d813 into lightninglabs:master May 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants