-
Notifications
You must be signed in to change notification settings - Fork 87
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
Support RapidGossipSync
#2
Comments
Random ideas (that aren't necessarily candidates for an MVP of this in LDKLite but at least wanted to toss out for consideration and discussion).
|
I don't think we should for a few reasons - (a) P2P sync currently doesn't have a decent way to just sync what you're missing, so we have to waste a ton of bandwidth on each start, (b) this assumes the peer is trusted because LDKLite probably shouldnt/wont bother doing on-chain validation of gossip, and (c) there's no good way to determine if P2P sync is "done". Not to mention the bandwidth waste you mention :). If our concern is trust in the RGS server, we should just sync from two RGS servers. Note that I don't really think its all that trivial for an RGS server to lie and hijack all payments - yes, they can in theory, but in order to actually do so, IIUC, they'll still need to open a ton of channels to actually route the payment in question. It may very well be that they have to open a sufficient number of channels that they dont have to exploit the RGS, they can just intercept payments by opening a ton of channels and setting fees to zero. |
Currently we only sync the gossip state via the P2P network.
We should however allow to configure a RGS server and use it for the initial sync.
We may also consider using RGS when we haven't synced in a long time and it may be faster to forget our old state and use RGS to start from scratch.
The text was updated successfully, but these errors were encountered: