-
Notifications
You must be signed in to change notification settings - Fork 407
Require best block timestamp within ChannelManager::new #2372
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
Require best block timestamp within ChannelManager::new #2372
Conversation
LGTM modulo the test failure. |
aef6ac2
to
554d48f
Compare
Codecov ReportPatch coverage:
❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more. Additional details and impacted files@@ Coverage Diff @@
## main #2372 +/- ##
==========================================
+ Coverage 90.30% 90.32% +0.01%
==========================================
Files 106 106
Lines 54747 54954 +207
Branches 54747 54954 +207
==========================================
+ Hits 49441 49635 +194
- Misses 5306 5319 +13
☔ View full report in Codecov by Sentry. |
554d48f
to
2eff97c
Compare
CI sad. Could this be useful on restart as well, if the node was down for a while? |
That should be covered by syncing to the current chain tip. |
2eff97c
to
1731b8f
Compare
This ensures freshly initialized nodes can proceed to create unexpired invoices without a call to `best_block_updated`, since an invoice's expiration delta is applied to `highest_seen_timestamp`.
82e0df5
1731b8f
to
82e0df5
Compare
This ensures freshly initialized nodes can proceed to create unexpired invoices without a call to
best_block_updated
, since an invoice's expiration delta is applied tohighest_seen_timestamp
.Fixes #2345.