-
Notifications
You must be signed in to change notification settings - Fork 51
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
How do we connect to a local node? #222
Comments
Ok, I see the bootNodes are libp2p multiaddresses which is why they have this format. Presumably I need to enable libp2p networking on my substrate node. Is this right? |
If you're running your node in Docker, then its ports aren't publicly reachable from the outside unless you pass appropriate CLI options.
Unless your Substrate is very heavily modified, libp2p isn't something that you enable or disable. It's always there. |
My ports These are the ports exposed in the docker file:
Are there some other ports that smoldot needs enabled? Thanks for the tip about libp2p. I'm using the default substrate contracts node so there are no custom mods. |
Ok, so I had exposed the ports in the Dockerfile but not in my docker compose file. I added
|
Seems like this is an issue with the substrate contracts node which is runs in
|
It is not syncing successfully, due to #166 |
There is a westend.json spec in the smoldot repo. I'm trying to replicate this for a local development node. I've output my chain-spec from the substrate node using
Which gave me this:
I also saw a
demo-chain-specs/dev.json
in this repo that contains pretty much the same stuff, including the same boot nodes. So I copied mydev.json
overdemo-chain-specs/dev.json
.To try and run a light client connecting to my local node I've replaced all instances of
westend.json
withdev.json
and I've changed the port to9966
as my local node is using9944
. This gives me the following output:How do I get smoldot to connect to my development chain? Do I need to replace the
bootNodes
values with some kind of local URL?This doesn't look like an address that smoldot would be able to reach. Is it like this as the node was running in docker?
I also tried running
generate_chain_spec.sh
as follows:However this outputted
null
in thechain_spec.json
.The command I'm using to run the substrate node is:
The text was updated successfully, but these errors were encountered: