-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Rename the block sync service #2612
Comments
I would probably vote for
|
Thanks for engaging. The spec is one of the main beneficiaries of this name change and should weigh in. I'd stress again this part (but open to more feedback about it):
I think the name needs to reflect what the protocol provides, not how you use it. You can very much exchange any (call it random if you want) segment of a chain, it can even be a chain from a different network (different genesis block) than the one you're syncing to (as long as the peer has it). |
I see - I agree with your points. If this is a general purpose protocol that can be used by any blockchain, then perhaps exclude the Another idea is to use *swap, as this protocol sounds similar to Bitswap, but for tipsets/blocks :-D |
I'm looking to add an interface for I'm happy to do this refactor, if you give me the go. I think What I'm thinking of:
|
Currently
BlockSyncService
andBlockSync
(client), to something likeChainExchange
(which regrettably is currently used for IPFS block exchange in the bitswap setup, that should probably also be changed).This is important to distinguish it from our many similar "block" (whether IPFS or Filecoin) exchanges/services, and justify why we need this one: when syncing we can't fetch the Filecoin blocks independently because we don't know upfront which ones we need, we have no CIDs to drive the bitswap exchange, we just have a new (potential) head and we need to start from there, but we also don't want to fetch one block at a time, rather we fetch chain segments at the discretion of our peers that will assemble the segment for us based on the requested starting tipset.
The text was updated successfully, but these errors were encountered: