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

Peerstore Fix #128

Merged
merged 11 commits into from
Sep 27, 2014
Merged

Peerstore Fix #128

merged 11 commits into from
Sep 27, 2014

Conversation

jbenet
Copy link
Member

@jbenet jbenet commented Sep 26, 2014

This PR changes Net, Swarm, SecurePipe to take a Peerstore.
Whenever they interact with a new peer (say, an incomming conn,
or by somebody calling Dial), it adds the given peer to the Peerstore.

This should fix the problem where peers are at some point given to the
network and/or dht that are not in the peerstore at all. (this panics
atm, to find bugs).

@jbenet jbenet self-assigned this Sep 26, 2014
@jbenet
Copy link
Member Author

jbenet commented Sep 26, 2014

@whyrusleeping
Copy link
Member

lol...

@jbenet
Copy link
Member Author

jbenet commented Sep 27, 2014

CR pls?

PeerID: "QmNgdzLieYi8tgfo2WfTUzNVH5hQK9oAYGVf6dxN12NrHt",
Address: "/ip4/127.0.0.1/tcp/8000",
PrivKey: "CAASrRIwggkpAgEAAoICAQCwt67GTUQ8nlJhks6CgbLKOx7F5tl1r9zF4m3TUrG3Pe8h64vi+ILDRFd7QJxaJ/n8ux9RUDoxLjzftL4uTdtv5UXl2vaufCc/C0bhCRvDhuWPhVsD75/DZPbwLsepxocwVWTyq7/ZHsCfuWdoh/KNczfy+Gn33gVQbHCnip/uhTVxT7ARTiv8Qa3d7qmmxsR+1zdL/IRO0mic/iojcb3Oc/PRnYBTiAZFbZdUEit/99tnfSjMDg02wRayZaT5ikxa6gBTMZ16Yvienq7RwSELzMQq2jFA4i/TdiGhS9uKywltiN2LrNDBcQJSN02pK12DKoiIy+wuOCRgs2NTQEhU2sXCk091v7giTTOpFX2ij9ghmiRfoSiBFPJA5RGwiH6ansCHtWKY1K8BS5UORM0o3dYk87mTnKbCsdz4bYnGtOWafujYwzueGx8r+IWiys80IPQKDeehnLW6RgoyjszKgL/2XTyP54xMLS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boYvWziK5JiRRJFA1rkQqV1c0M+OXixIm+/yS8AksgCeaHr0WUieGcJtjT9uE8vyFop5ykhRiNxy9wGaq6i7IEecsrkd6DqxDHWkwhFuO1bSE83q/VAoIBAEA+RX1i/SUi08p71ggUi9WFMqXmzELp1L3hiEjOc2AklHk2rPxsaTh9+G95BvjhP7fRa/Yga+yDtYuyjO99nedStdNNSg03aPXILl9gs3r2dPiQKUEXZJ3FrH6tkils/8BlpOIRfbkszrdZIKTO9GCdLWQ30dQITDACs8zV/1GFGrHFrqnnMe/NpIFHWNZJ0/WZMi8wgWO6Ik8jHEpQtVXRiXLqy7U6hk170pa4GHOzvftfPElOZZjy9qn7KjdAQqy6spIrAE94OEL+fBgbHQZGLpuTlj6w6YGbMtPU8uo7sXKoc6WOCb68JWft3tejGLDa1946HAWqVM9B/UcneNc=",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

such a large string!

@whyrusleeping
Copy link
Member

Just a few comments, otherwise, LGTM

@jbenet
Copy link
Member Author

jbenet commented Sep 27, 2014

@whyrusleeping addressed comments

@whyrusleeping
Copy link
Member

Yeah, everything looks great! merge it!

jbenet added a commit that referenced this pull request Sep 27, 2014
@jbenet jbenet merged commit 8b68776 into master Sep 27, 2014
@jbenet jbenet deleted the feat/peerstorefix branch September 27, 2014 08:39
@aschmahmann aschmahmann mentioned this pull request Feb 18, 2021
73 tasks
laurentsenta pushed a commit to laurentsenta/kubo that referenced this pull request Feb 25, 2022
Add config for downloading repo migrations
laurentsenta pushed a commit to laurentsenta/kubo that referenced this pull request Feb 25, 2022
…config

Add config for downloading repo migrations
laurentsenta pushed a commit to laurentsenta/kubo that referenced this pull request Mar 4, 2022
…config

Add config for downloading repo migrations
laurentsenta pushed a commit to laurentsenta/kubo that referenced this pull request Mar 4, 2022
…config

Add config for downloading repo migrations
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.

2 participants