Skip to main content

Questions tagged [dev]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
52 views

How does the Substrate Node Template deal with command line arguments?

I'm reading the code of Substrate Node Template, trying to get a deeper understanding of the implementation of it. However, I stuck when I tried to find out how the node deals with command line ...
Fu Endericedragon's user avatar
1 vote
2 answers
37 views

#[frame_support::pallet(dev_mode)] versus #[frame_support::pallet]

I see that most of the pallets are annotated as #[frame_support::pallet], but some of them are #[frame_support::pallet(dev_mode)] and my question is what exactly means dev-mode in the context of the ...
Tomasz Waszczyk's user avatar
3 votes
1 answer
55 views

Circular dependency

I am in the process of making the block handler modular (https://github.com/paritytech/substrate/pull/14014 pending now). We have this scenario: build_network() expects all the components constructed/...
rusty's user avatar
  • 151
2 votes
1 answer
67 views

Replacing Endowed Account Address in a Local Substrate Blockchain: A Tutorial

Hello Substrate community! If you have been following the tutorial on building a local blockchain using Substrate, you may have noticed that your address is hard-coded in a JSON file. To replace your ...
support's user avatar
  • 135
2 votes
2 answers
83 views

Unable to push a branch

I would like to submit a PR for a feature I am working on. I was able to clone [email protected]:paritytech/substrate.git, created a local branch/made the changes, and tried to push the branch (git push -...
rusty's user avatar
  • 151
3 votes
1 answer
92 views

Support status for Apple M2 chip

2022 Apple macbook pros all comes with M2 chips. Before buying one, I want to double check about the current support status of the M2 chips with the Substrate/Polkadot codebase. Is M2 chips ...
Roy Yang's user avatar
2 votes
1 answer
127 views

False positive Errors on Jetbrains IDEs

I’m currently using VSCode to develop a chain based on Substrate, and want to switch to CLion or IntelliJ IDEA, but after setting up these IDEs, the inspection reports more than 90 errors in my ...
Sailor SnoW's user avatar
3 votes
1 answer
250 views

Dev Substrate Node at Capacity for WS Connections, how to flush?

I'm running a node in dev mode: ./substrate/target/release/substrate --dev --tmp --ws-external My client connection code: provider = new WsProvider(wsProvider) api = await new ApiPromise({ provider })....
Matthew Darnell's user avatar
10 votes
2 answers
123 views

What does the `--dev` flag do?

I get a different set of behaviors when running my node with --dev than when I run my node with my own custom setup. What is happening in the background?
Shawn Tabrizi's user avatar
  • 16.1k
10 votes
3 answers
100 views

What does the `--tmp` flag do when running the Substrate Node Template?

The Substrate Node Template says in the "Run" section of the README, that the single-node development chain will start with "non-persistent state" if run with the following command:...
tarrball's user avatar
  • 225