Skip to content

option_data_loss_protect: fixup commitment point check - #2275

Merged
rustyrussell merged 1 commit into
ElementsProject:masterfrom
niftynei:niftyn/dataloss_again
Jan 20, 2019
Merged

rustyrussell merged 1 commit into
ElementsProject:masterfrom
niftynei:niftyn/dataloss_again

Conversation

@niftynei

@niftynei niftynei commented Jan 18, 2019 •

Copy link
Copy Markdown
Collaborator

Spurious errors were occuring around checking the provided
current commitment point from the peer on reconnect when
option_data_loss_protect is enabled. The problem was that
we were using an inaccurate measure to screen for which
commitment point to compare the peer's provided one to.

This fixes the problem with screening, plus makes our
data_loss test a teensy bit more robust.

This fixes the spurious errors in test_restart_many_payments

@niftynei
niftynei requested a review from rustyrussell January 18, 2019 01:30
@niftynei
niftynei requested a review from cdecker as a code owner January 18, 2019 01:30
Spurious errors were occuring around checking the provided
current commitment point from the peer on reconnect when
option_data_loss_protect is enabled. The problem was that
we were using an inaccurate measure to screen for which
commitment point to compare the peer's provided one to.

This fixes the problem with screening, plus makes our
data_loss test a teensy bit more robust.
@niftynei
niftynei force-pushed the niftyn/dataloss_again branch from 8ddcfcf to 4d46daa Compare January 18, 2019 01:53
@cdecker

cdecker commented Jan 18, 2019

Copy link
Copy Markdown
Member

Looking good 👍

@rustyrussell rustyrussell left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Ack 4d46daa

test_restart_many_payments passes 100 tests in a row, which didn't happen before (with --enable-experimental-features)

Would have been tempted to split this into multiple commits: perhaps one to tighten testing and add comments, the other to actually make the fix.

@rustyrussell

Copy link
Copy Markdown
Collaborator

Please submit another commit to remove it from experimental features?

@rustyrussell
rustyrussell merged commit c45d034 into ElementsProject:master Jan 20, 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.

3 participants