-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Update fee after channel becomes active #8876
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -856,6 +856,10 @@ func TestChannelLinkCancelFullCommitment(t *testing.T) { | |
n := newTwoHopNetwork( | ||
t, channels.aliceToBob, channels.bobToAlice, testStartingHeight, | ||
) | ||
// This test takes a long time to finish and the link breaks if the fee | ||
// update times out during it, blocking the test indefinitely | ||
n.aliceChannelLink.updateFeeTimer.Reset(time.Minute * 10) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This mitigation works, though it may introduce flakiness to the unit tests since we are now relying on them to be finished in under 1min. We should still give the "send out a fee update immediately on startup" a shot, and I'll help figure out how to best handle the tests. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Many tests break if we immediately send an update. If you're up to the task then sure, this change is trivial enough. But I still think it's better to set the timer to 0 instead (achieving the same effect without forcing it in all cases), reset it to 10 minutes for the tests + write a separate test for this instant update. I'll take a look in a day or two! There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @yyforyongyu Hi, maybe you could take this over? I really don't have time now it seems... There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. sure, thanks for all the input so far! |
||
n.bobChannelLink.updateFeeTimer.Reset(time.Minute * 10) | ||
|
||
// Fill up the commitment from Alice's side with 20 sat payments. | ||
count := (input.MaxHTLCNumber / 2) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Linking back to the issue,
Though less likely, if the following happened we'd still have this issue or?