Uh oh!
There was an error while loading. Please reload this page.
Invoice chanman utility - #895
Conversation
Codecov Report
@@ Coverage Diff @@## main #895 +/- ##
==========================================
- Coverage 90.38% 90.36% -0.02%
==========================================
Files 57 58 +1 Lines 29500 29505 +5 ==========================================
- Hits 26663 26662 -1 - Misses 2837 2843 +6
Continue to review full report at Codecov.
|
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
fec5fa5 to
7d5ebb2Compare78b8298 to
4d5f112CompareUh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
TheBlueMatt
commented
Apr 28, 2021
Can now be rebased after the merge of #893. |
b3d0434 to
5dfb86aCompareUh oh!
There was an error while loading. Please reload this page.
8cd714c to
5a478c7Compare| L::Target: Logger, | ||
| { | ||
| // Marshall route hints. | ||
| let our_channels = channelmanager.list_usable_channels(); |
There was a problem hiding this comment.
IIUC this utility returns as routing hints the complete set of our channels, including the non-announced subset one ?
Sounds pretty harmful for privacy, maybe the utility should have a boolean all or otherwise a Vec<short_channel_id> to precise which ones to disclose ?
There was a problem hiding this comment.
I think this is the right default to this - in most cases if we're a "client" node we only have one or two channels anyway (and in non-"client" cases we have several channels that are public), and the "real" fix is to generate random short channel ids.
There was a problem hiding this comment.
Agree for the "client" node but for a big hub you will disclose all your private channels with spoke if you're also a merchant which is quite the case of a bunch of such nodes. Though opening an issue for now, we'll adjust in function of users feedback.
There was a problem hiding this comment.
Right, we ultimately need some heuristic of "we have > 5 public channels, we shouldn't include any route hints at all", probably.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
5dd106d to
9ab3a9cComparevalentinewallace
commented
Apr 29, 2021
Oops, need to switch |
1e34c16 to
e2f81e3CompareUh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
3c58411 to
fbdb7a1Comparevalentinewallace
commented
Apr 29, 2021
Gonna have lunch then come back to this |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
c1f9f87 to
50c0a99CompareUh oh!
There was an error while loading. Please reload this page.
7794708 to
a614b9bCompareUh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
TheBlueMatt
left a comment
There was a problem hiding this comment.
Aside from Jeff's comments and #895 (comment) this LGTM.
a614b9b to
6173c2cCompare6173c2c to
a6a6130CompareUh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
a6a6130 to
8385915Comparevalentinewallace
commented
Apr 29, 2021
Gah my bad, fixed |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This also allows the ChannelManager to track information for inbound payments to check the PaymentSecret on receive.
8385915 to
4c7be7eCompare
TODO: testsBased on #893