Uh oh!
There was an error while loading. Please reload this page.
[WIP] New ChannelId enum - #2451
Conversation
codecov-commenter
commented
Jul 26, 2023
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 #2451 +/- ##
=======================================
Coverage 90.33% 90.33% =======================================
Files 106 106 Lines 55732 55792 +60 Branches 55732 55792 +60 =======================================
+ Hits 50347 50402 +55 - Misses 5385 5390 +5
☔ View full report in Codecov by Sentry. |
| for channel in channels.into_iter().filter(|chan| chan.is_channel_ready) { | ||
| if channel.get_inbound_payment_scid().is_none() || channel.counterparty.forwarding_info.is_none() { | ||
| log_trace!(logger, "Ignoring channel {} for invoice route hints", log_bytes!(channel.channel_id)); | ||
| log_trace!(logger, "Ignoring channel {} for invoice route hints", log_bytes!(channel.channel_id.bytes()[..])); |
There was a problem hiding this comment.
Since we're already touching it it would be nice to implement Display/Debug for ChannelId and log in a more readable form, e.g., as a hex string.
There was a problem hiding this comment.
I've just done this (in #2485), and I've seen this comment only now :)
optout21
commented
Jul 26, 2023
One fuzz test fails, to check |
Fixes#2408 . Introduces a new
ChannelIdenum, with two variants, for normal funding-tx-based and temporary ID, both wrapper around 32-byte data.TODO:
FundingTxBased)