Comments (5)
nevermind I probably need to add a stream handler first. what shoul dI expect if the stream handler is created a connection is set?
from erlang-libp2p.
Hmm.. you'll need to create a stream handler to do anything useful with a session, but you should be able to connect two swarms together without any custom handlers.
I'm not sure what's wrong here since the unit tests do exactly this setup, but here's a couple of things to try:
- Could you check on the filesystem to ensure that each swarm had a unique data folder?
- Try setting the peerbook_connections option to 0 to see if that's what's causing the problem.
Add the following tuple to the startup opts:
{ libp2p_group_gossip, [{peerbook_connections, 0}] }
from erlang-libp2p.
sorry I missed your answer. I will try later today. To be honest I wouldn't be against a quick and dirty "getting started" doc :)
from erlang-libp2p.
- Could you check on the filesystem to ensure that each swarm had a unique data folder?
why do they need a data folder btw?
from erlang-libp2p.
A swarm stores its keys in the data folder (unless configured otherwise) as well as it's peer book and any group information that has to persist across restarts/crashes
from erlang-libp2p.
Related Issues (20)
- stungun reporting private ip address ranges HOT 2
- infinite loop, relay through self p2p addresses
- Hotspots going relayed into after 2021-09-03~ update multiple users HOT 33
- "listen_addrs" changes to a random IP address, gossiping wrong IP address to the Helium Network HOT 10
- Sensecap issues after firmware update 2021.09.03.0 HOT 24
- IPv6 Support HOT 9
- force sync with known "good" node? HOT 1
- peerbook random should not count stale peers against it's total check amount
- proliferation of empty listen address HOT 4
- No sending beacons HOT 1
- stungun issues: detected NAT type symmetric HOT 4
- Miner can't connect to peers. not_found errors in logs. Results in hotspot not witnessing anything. HOT 22
- Validators connections linger for 6 hours after Consensus Group
- hotspot has a different listen address than the one listed in the Helium API
- listening address error
- Undefined Error in process: {badmatch,{error,eagain}
- Possibly skipping first peer when randomly selecting
- Fatal Validator Crash - `libp2p_peerbook:random` HOT 1
- Where should people ask technical questions about erlang-libp2p?
- Where to have technical discussions about erlang-libp2p? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from erlang-libp2p.