Skip to content

Conversation

@hieblmi
Copy link
Collaborator

@hieblmi hieblmi commented Dec 13, 2024

Gather PR to fix upcoming rc testing issues.

  • checks dust limits before withdrawing deposits
  • removes the --experimental flag for static addresses
  • fixes text formatting

@hieblmi hieblmi self-assigned this Dec 13, 2024
@hieblmi hieblmi marked this pull request as draft December 13, 2024 20:50
@hieblmi hieblmi marked this pull request as ready for review December 14, 2024 11:06
@hieblmi hieblmi requested review from sputn1ck and starius December 14, 2024 11:07
Copy link
Collaborator

@starius starius left a comment

Choose a reason for hiding this comment

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

LGTM! 🏒
Added a couple of comments.


if outputValue < int64(dustLimit) {
return nil, fmt.Errorf("withdrawal output value %v sats "+
"below dust limit %v sats", outputValue, dustLimit)
Copy link
Collaborator

Choose a reason for hiding this comment

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

%v prints amouts in BTC with " BTC" suffix. So this error message would look like "below dust limit 0.00000294 BTC sats".
I propose to use "%d sats" in both cases.

).FeePerKWeight()
}

// We'll now check the selected fee rate leaves a withdrawal output that
Copy link
Collaborator

Choose a reason for hiding this comment

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

I propose to cover the logic and various sub-cases in this method with unit tests. Maybe factor out a pure function to make it unit tests friendly.

@hieblmi hieblmi force-pushed the fix-rc-review-comments branch from ea871e9 to acea303 Compare December 16, 2024 10:38
@hieblmi hieblmi merged commit 7a1cb63 into lightninglabs:static-addr-staging Dec 16, 2024
4 checks passed
@hieblmi hieblmi deleted the fix-rc-review-comments branch December 16, 2024 10:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants