Skip to content
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

PROTOCOL BREAKING: use discovery-swarm for sending peer key #39

Merged
merged 6 commits into from
May 21, 2019

Conversation

hackergrrl
Copy link
Member

Previously 'swarm.js' would send a 32-byte payload before handing off to cabal-core#replicate. This

a) isn't necessary, since discovery-swarm can send an arbitrary payload anyway, and

b) makes other clients (like Message Land's gateway) unable to use straight-up cabal-core#replicate to sync with e.g. CLI peers

This also adds some tests for same-process and network sync, and makes the 'swarm' API be a member of the cabal instance instead of something to require separately.

@okdistribute
Copy link
Member

okdistribute commented May 20, 2019

So awesome! FYI @joehand

@cblgh
Copy link
Member

cblgh commented May 20, 2019

beautiful

@hackergrrl hackergrrl merged commit 69ccce8 into master May 21, 2019
@okdistribute okdistribute deleted the simpler-swarm branch May 21, 2019 23:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants