Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Bug Substrate tutorial --rpc-port <X> #14741

Closed
2 tasks done
Tidus91 opened this issue Aug 9, 2023 · 6 comments · Fixed by substrate-developer-hub/substrate-docs#2041
Closed
2 tasks done

Bug Substrate tutorial --rpc-port <X> #14741

Tidus91 opened this issue Aug 9, 2023 · 6 comments · Fixed by substrate-developer-hub/substrate-docs#2041
Labels
I6-documentation Documentation needs fixing, improving or augmenting. Z6-mentor An easy task where a mentor is available. Please indicate in the issue who the mentor could be.

Comments

@Tidus91
Copy link

Tidus91 commented Aug 9, 2023

Is there an existing issue?

  • I have searched the existing issues

Experiencing problems? Have you tried our Stack Exchange first?

  • This is not a support question.

Description of bug

Bug for the parameter --rpc-port
at the first time that we are invited to do it here :

bugTutoSubstrate

i have this error message after trying this :

bugSubstrate2

So we need to use this parameter 2 times but we have an error message by doing so.

And i guess that this bug is blocking us for the rest of the tutorial right ?

Steps to reproduce

Just doing this tutorial part

@github-actions github-actions bot added the J2-unconfirmed Issue might be valid, but it’s not yet known. label Aug 9, 2023
@Tidus91 Tidus91 changed the title Substrate tutorial Bug Substrate tutorial --rpc-port <X> Aug 9, 2023
@Tidus91
Copy link
Author

Tidus91 commented Aug 9, 2023

I think there is also a bug at the following of the tutorial with the command --SURI , it's not taking a string

@Tidus91
Copy link
Author

Tidus91 commented Aug 11, 2023

Also an other bug here :
bugSubstrate3

got this error message : error[E0220]: associated type BlockNumbernot found forT``

@danisvice
Copy link

danisvice commented Aug 12, 2023

RE: error: the argument '--rpc-port <PORT>' cannot be used multiple times

Add && after the primary --rpc-port options
Run these commands & it should work:

Alice node:

./target/release/node-template \
--base-path /tmp/alice \
--chain local \
--alice \
--port 30333 \
--rpc-port 9945 && \
--rpc-port 9933 \
--node-key 0000000000000000000000000000000000000000000000000000000000000001 \
--telemetry-url "wss://telemetry.polkadot.io/submit/ 0" \
--validator

Bob node:

./target/release/node-template \
--base-path /tmp/bob \
--chain local \
--bob \
--port 30334 \
--rpc-port 9946 && \
--rpc-port 9934 \
--telemetry-url "wss://telemetry.polkadot.io/submit/ 0" \
--validator \
--bootnodes /ip4/127.0.0.1/tcp/30333/p2p/12D3KooWEyoppNCUx8Yx66oV9fJnriXwCcXwDDUA2kj6vnc6iDEp

@liamaharon liamaharon added I6-documentation Documentation needs fixing, improving or augmenting. Z0-trivial Writing the issue is of the same difficulty as patching the code. Z6-mentor An easy task where a mentor is available. Please indicate in the issue who the mentor could be. and removed J2-unconfirmed Issue might be valid, but it’s not yet known. Z0-trivial Writing the issue is of the same difficulty as patching the code. labels Aug 12, 2023
@liamaharon
Copy link
Contributor

Thanks @Tidus91 for bringing this up!

The substrate.io docs are open source. I've added a mentor label to this issue, it would be great if someone was to open a PR to fix it :)

https://github.com/substrate-developer-hub/substrate-docs/blob/main/content/md/en/docs/tutorials/build-a-blockchain/simulate-network.md

@Tidus91
Copy link
Author

Tidus91 commented Aug 16, 2023

Also an other bug here : bugSubstrate3

got this error message : error[E0220]: associated type BlockNumbernot found forT``

By any chances, do you have a fix for this bug ?
because it is blocking the following of the tutorial

@ggwpez
Copy link
Member

ggwpez commented Aug 16, 2023

You can replace <T as Config>::BlockNumber with frame_system::pallet_prelude::BlockNumberFor<T>. It was changed here #14437

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
I6-documentation Documentation needs fixing, improving or augmenting. Z6-mentor An easy task where a mentor is available. Please indicate in the issue who the mentor could be.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants