Skip to content
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

pytest: add test store announcement_signatures, cleanups and a small bugfix #2706

Merged

Conversation

SimonVrouwe
Copy link
Collaborator

Adds pytest test_reconnect_remote_sends_no_sigs, which test #2619.
Small fixes (incorrect log line and missing newline) to #2619.
Fix for counting reached_announce_depth in peer_start_channeld (was off by one).
Cleanups in test_funding_reorg_remote_lags.

…er_start_channeld

Fixes a corner case when reconnecting (which restarts channeld) at depth=6
where we didn't correctly send/respond with announce_signatures.

NOTE: A complete restart of node may initialize channeld with unupdated height
because of an unfinished rescan. But when rescan is finished, funding tx_watch is
fired (at least once), which then tells channeld the latest depth.
Remote node may (incorrectly) not send announcement_signatures when
reconnecting, so we we use a copy and can still re-announce.
Also checks that we still send our announcement_signatures when reconnecting.
- mock_rpc function now returns full JSON-RPC response, is much cleaner
- Since reached_announce_depth counting is fixed when starting
  channeld, we don't need the 7th block to tell depth anymore.
channeld/channel_wire.csv add missing newline
@SimonVrouwe SimonVrouwe requested a review from cdecker as a code owner June 4, 2019 06:05
Copy link
Contributor

@rustyrussell rustyrussell left a comment

Choose a reason for hiding this comment

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

Ack d28e03f

Copy link
Collaborator

@trueptolemy trueptolemy left a comment

Choose a reason for hiding this comment

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

Thank you! I like your design :)

@cdecker cdecker merged commit 44d64c1 into ElementsProject:master Jun 7, 2019
@SimonVrouwe SimonVrouwe deleted the 31_may_tests_ann_sigs_PR2619 branch June 7, 2019 12:22
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.

4 participants