-
Notifications
You must be signed in to change notification settings - Fork 385
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
Implement PendingHTLCsRelayable Event to split acceptance/relay checks #680
Comments
This could also allow live-rebalancing on the client's end, which would be cool. |
Also fix current bug : #633 (comment) |
Note that the bug at #633 (comment) has been fixed in #690. |
Might serve to address few timing attacks : #975 (comment) |
Might serve as iptables for routing nodes : #975 (comment) |
Maybe also addressing that at the same time : #1119 (comment) |
May need to rely on #1302 |
Turns out we're not gonna rely on this for #1302, so there's no reason for this to have a very-soon milestone. |
Currently, we apply both BOLT-2 incoming channels settings checks and BOLT-4 relay checks at
update_add_htlc
reception. We should split relay checks and get incoming HTLC acceptance generate aEvent::PendingHTLCsRelayable
. This event could be consumed byprocess_pending_htlc_relayable
and should generate aPendingHTLCsForwardable
. In between any kind of client custom function can be implemented support for stricter relay policy, on-the-flight generated outgoing zero-conf channel, delayed relay, trampoline-style of routing, ...See further #670 and http://gnusha.org/rust-bitcoin/.
The text was updated successfully, but these errors were encountered: