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
Send update_fee
on reconnection
#1383
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1383 +/- ##
==========================================
+ Coverage 86.56% 86.65% +0.09%
==========================================
Files 123 123
Lines 9398 9403 +5
Branches 401 404 +3
==========================================
+ Hits 8135 8148 +13
+ Misses 1263 1255 -8
|
0f1e687
to
d002fbb
Compare
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.
The approach is correct but I'm not 100% sure we should use BroadcastChannelUpdate
, isn't this event fired every REFRESH_CHANNEL_UPDATE_INTERVAL = 10 days
? (Recall we want to re-send the update_fee
on channel reestablish)
eclair-core/src/main/scala/fr/acinq/eclair/channel/Channel.scala
Outdated
Show resolved
Hide resolved
eclair-core/src/test/scala/fr/acinq/eclair/channel/states/e/OfflineStateSpec.scala
Outdated
Show resolved
Hide resolved
Look at the handler for |
Right, this looks correct to me and i'm fine with reusing |
This isn't necessarily an issue. The |
eclair-core/src/main/scala/fr/acinq/eclair/channel/Channel.scala
Outdated
Show resolved
Hide resolved
We update transaction fees at every block (ie every 10 minutes). While this works well when the remote peer is a node that's online for more than 10 minutes, it's an issue for mobile wallets that usually come online for a few minutes and then disconnect. We want to make sure we send these wallet peers an update_fee when one is needed, so we now check for feerate updates on reconnection. Fixes #1381.
adabb3b
to
9d8f68e
Compare
We update transaction fees at every block (ie every 10 minutes). While this works well when the remote peer is a node that's online for more than 10 minutes, it's an issue for mobile wallets that usually come online for a few minutes and then disconnect.
We want to make sure we send these wallet peers an update_fee when one is needed, so we now check for feerate updates on reconnection.
Fixes #1381.