-
Notifications
You must be signed in to change notification settings - Fork 407
Expose more info in PaymentForwarded
#1391
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
Comments
Do we want the source key to be a |
No, |
Having a channel id here would be super helpful 👍 |
If no one is already working on this, I'd like to take this on. I can probably have this completed by next weekend. (p.s. I appreciate the Notes for selfEvent is described here rust-lightning/lightning/src/util/events.rs Lines 343 to 363 in 7671ae5
and at quick glance, the references to update are rust-lightning/lightning/src/util/events.rs Lines 523 to 528 in 7671ae5
and rust-lightning/lightning/src/util/events.rs Lines 684 to 695 in 7671ae5
and rust-lightning/lightning/src/ln/channelmanager.rs Lines 4295 to 4298 in 6b8ad4e
There's also tests, mostly calling this macro rust-lightning/lightning/src/ln/functional_test_utils.rs Lines 1330 to 1342 in 7671ae5
|
I've been working on this and am nearing completion. There is one bug (unexpected behaviour?) which is causing a few tests to fail so maybe you could help out. Please refer to these comments: |
We should still expose the destination/sink channel id, #1419 only exposed the source. |
I'll add that next! |
You may want to take a look at #1231, which had actually implemented that half as well, but wasn't actively being worked on. Should be able to copy a bunch of that work. |
When this was added I figured we should be conservative to avoid users logging exact forwarding history (this is bad for network-wide privacy!) but that doesn't mean important info isn't missing from them that users will want. Ultimately I think we have to air on the side of features, not privacy, sadly - while we shouldn't bother to include the payment hash, I think, we should include things like the source + sink nodes/channels in the event.
The text was updated successfully, but these errors were encountered: