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

Re-send ChannelUpdate on reconnection (vol 2) #1342

Merged
merged 2 commits into from
Mar 11, 2020
Merged

Conversation

pm47
Copy link
Member

@pm47 pm47 commented Mar 6, 2020

Previous implementation in #1317 wasn't working because of a bug in the
transition. Added a test and fixed it.

cc @t-bast @btcontract

Previous implementation in #1317 wasn't working because in a bug in the
transition. Added a test and fixed it.
@codecov-io
Copy link

Codecov Report

Merging #1342 into master will increase coverage by 0.09%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #1342      +/-   ##
==========================================
+ Coverage   78.14%   78.23%   +0.09%     
==========================================
  Files         146      146              
  Lines       10270    10270              
  Branches      396      396              
==========================================
+ Hits         8025     8035      +10     
+ Misses       2245     2235      -10
Impacted Files Coverage Δ
...c/main/scala/fr/acinq/eclair/channel/Channel.scala 85.31% <100%> (+0.82%) ⬆️
...q/eclair/blockchain/electrum/ElectrumWatcher.scala 55.2% <0%> (-0.8%) ⬇️
...cinq/eclair/blockchain/bitcoind/zmq/ZMQActor.scala 94.87% <0%> (+5.12%) ⬆️

Copy link
Member

@t-bast t-bast left a comment

Choose a reason for hiding this comment

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

Arf I should have added an E2E test to #1317, my bad!

alice2bob.expectNoMsg()
bob2alice.expectNoMsg()

// funding tx gets 6 confirmations, channel is private so there is no announcement sigs
Copy link
Member

Choose a reason for hiding this comment

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

You should have an alice2bob.expectNoMsg() to verify that no announcement sig is sent, don't you?

Copy link
Member Author

@pm47 pm47 Mar 11, 2020

Choose a reason for hiding this comment

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

We receive ChannelUpdates instead.

Copy link
Member

Choose a reason for hiding this comment

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

Isn't there a way to expect no message of type X?

Co-Authored-By: Bastien Teinturier <31281497+t-bast@users.noreply.github.com>
@pm47 pm47 merged commit b5bd2f0 into master Mar 11, 2020
@pm47 pm47 deleted the resend-channel-update branch March 11, 2020 14:02
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