Skip to content

Gracefully handle fee-larger-than-claimed-value in ChannelMonitor #341

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

Conversation

TheBlueMatt
Copy link
Collaborator

This resulted in a full_stack_target failure as we overflow during
subtraction otherwise.

Instead, we try lower and lower fee estimator confirmation targets
until we find one low enough, or discard the transaction. We should
be able to handle this much cleaner, but for now this at least gets
the fuzzer working again.

This resulted in a full_stack_target failure as we overflow during
subtraction otherwise.

Instead, we try lower and lower fee estimator confirmation targets
until we find one low enough, or discard the transaction. We should
be able to handle this much cleaner, but for now this at least gets
the fuzzer working again.
Copy link

@ariard ariard left a comment

Choose a reason for hiding this comment

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

Tested ACK 98134c8. Run fuzzer on it.

My bad, seems #334 was faulty.
Among cleaner solutions I see :

  • have lower confirmation levels than Background
  • aggregation triggering : have a buffer low_value_inputs_to_aggregate
  • query a inputs pool from wallet to bump tx

@TheBlueMatt
Copy link
Collaborator Author

Ehh, still better than it was. In the future, indeed, probably should come up with some metrics to ignore things when fees are high and go back and try them again if fees go back down.

@TheBlueMatt TheBlueMatt merged commit a02d70d into lightningdevkit:master Jul 1, 2019
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.

2 participants