-
Notifications
You must be signed in to change notification settings - Fork 268
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
Conversation
Previous implementation in #1317 wasn't working because in a bug in the transition. Added a test and fixed it.
Codecov Report
@@ 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
|
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.
Arf I should have added an E2E test to #1317, my bad!
eclair-core/src/test/scala/fr/acinq/eclair/channel/states/e/OfflineStateSpec.scala
Outdated
Show resolved
Hide resolved
alice2bob.expectNoMsg() | ||
bob2alice.expectNoMsg() | ||
|
||
// funding tx gets 6 confirmations, channel is private so there is no announcement sigs |
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.
You should have an alice2bob.expectNoMsg()
to verify that no announcement sig is sent, don't you?
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.
We receive ChannelUpdate
s instead.
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.
Isn't there a way to expect no message of type X?
Co-Authored-By: Bastien Teinturier <31281497+t-bast@users.noreply.github.com>
Previous implementation in #1317 wasn't working because of a bug in the
transition. Added a test and fixed it.
cc @t-bast @btcontract