Skip to content
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

Config option for defensive fee check for client related sweep transactions #729

Open
hieblmi opened this issue Apr 16, 2024 · 0 comments
Open
Assignees

Comments

@hieblmi
Copy link
Collaborator

hieblmi commented Apr 16, 2024

Provide loop with a configuration option that specifies a global defensive fee check for sweep transaction that the client initiates. This should be applicable to any bitcoin transaction the client might publish.

The config option should express the maximum ratio of fees to transaction output amount that is permisable.
A value of 0.05 would denote that the client will only publish transactions with <5% fees of the amount of the transaction itself.

Samples where this option could be used:

return nil, errors.New("fee is higher than 20% of " +

loop/loopin.go

Line 1081 in e08d9da

fee, err := s.sweeper.GetSweepFee(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant