Skip to content

Conversation

Crypt-iQ
Copy link
Collaborator

@Crypt-iQ Crypt-iQ commented Oct 6, 2017

This commit fixes the TestChannelBalanceDustLimit unit test in channel_test.go. The unit test does not account for the fees required by adding an HTLC. As a result, Alice's balance drops below 0 at certain points. By using the correct fee, this is avoided. The negative balance can be observed here in ourBalance.

This commit fixes the TestChannelBalanceDustLimit unit test in
channel_test.go. The unit test does not account for the fees
required by adding an HTLC. As a result, Alice's balance according
to her local and remote commitment chains drops below 0 at certain
points. By using the correct fee, this is avoided.
Copy link
Member

@Roasbeef Roasbeef left a comment

Choose a reason for hiding this comment

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

LGTM ⛷

@Roasbeef Roasbeef merged commit aa63958 into lightningnetwork:master Oct 20, 2017
@Crypt-iQ Crypt-iQ deleted the channel_test_fix branch October 20, 2017 06:47
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