Skip to content

Fix bumping timer for claiming revoked HTLC outputs #459

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

ariard
Copy link

@ariard ariard commented Jan 23, 2020

Previously, we were using their_to_self_delay instead of
our_to_self_delay which was falsifying test.

Another bug I spot while refactoring, can go on its own.

We should rename their_to_self/our_to_self to csv_on_remote, csv_on_local that would be more meaningful.

Previously, we were using their_to_self_delay instead of
our_to_self_delay which was falsifying test.
Copy link
Collaborator

@TheBlueMatt TheBlueMatt left a comment

Choose a reason for hiding this comment

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

Ugh, yea, this sucks. Renaming would help, but it would be nice to have some way of testing this more directly or better code structure so that its more obvious? I don't see anything obvious to do, so will merge as-is, but it does hurt.

@TheBlueMatt TheBlueMatt merged commit f70058e into lightningdevkit:master Jan 25, 2020
@ariard
Copy link
Author

ariard commented Jan 26, 2020

Sadly it was tested by test_bump_penalty_txn_on_revoked_htlcs, but the test being fairly complex I didn't notice it at first, between wrong and good heights..

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