Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 10 additions & 4 deletions bin/node-template/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ Substrate-based blockchain nodes expose a number of capabilities:
- Consensus: Blockchains must have a way to come to
[consensus](https://substrate.dev/docs/en/knowledgebase/advanced/consensus) on the state of the
network. Substrate makes it possible to supply custom consensus engines and also ships with
several consensus mechanisms that have been built on top of Web3 Foundation research.
several consensus mechanisms that have been built on top of
[Web3 Foundation research](https://research.web3.foundation/en/latest/polkadot/NPoS/index.html).
- RPC Server: A remote procedure call (RPC) server is used to interact with Substrate nodes.

There are several files in the `node` directory - take special note of the following:
Expand Down Expand Up @@ -140,12 +141,17 @@ capabilities and configuration parameters that it exposes:

### Runtime

The Substrate project in this repository uses the
[FRAME](https://substrate.dev/docs/en/knowledgebase/runtime/frame) framework to construct a
In Substrate, the terms
"[runtime](https://substrate.dev/docs/en/knowledgebase/getting-started/glossary#runtime)" and
"[state transition function](https://substrate.dev/docs/en/knowledgebase/getting-started/glossary#stf-state-transition-function)"
are analogous - they refer to the core logic of the blockchain that is responsible for validating
blocks and executing the state changes they define. The Substrate project in this repository uses
the [FRAME](https://substrate.dev/docs/en/knowledgebase/runtime/frame) framework to construct a
blockchain runtime. FRAME allows runtime developers to declare domain-specific logic in modules
called "pallets". At the heart of FRAME is a helpful
[macro language](https://substrate.dev/docs/en/knowledgebase/runtime/macros) that makes it easy to
create pallets and flexibly compose them to create blockchains that can address a variety of needs.
create pallets and flexibly compose them to create blockchains that can address
[a variety of needs](https://www.substrate.io/substrate-users/).

Review the [FRAME runtime implementation](./runtime/src/lib.rs) included in this template and note
the following:
Expand Down
4 changes: 0 additions & 4 deletions bin/node-template/node/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,7 @@ targets = ["x86_64-unknown-linux-gnu"]
name = "node-template"

[dependencies]
futures = "0.3.4"
log = "0.4.8"
structopt = "0.3.8"
parking_lot = "0.10.0"

sc-cli = { version = "0.8.0-rc5", path = "../../../client/cli", features = ["wasmtime"] }
sp-core = { version = "2.0.0-rc5", path = "../../../primitives/core" }
Expand All @@ -28,7 +25,6 @@ sc-service = { version = "0.8.0-rc5", path = "../../../client/service", features
sp-inherents = { version = "2.0.0-rc5", path = "../../../primitives/inherents" }
sc-transaction-pool = { version = "2.0.0-rc5", path = "../../../client/transaction-pool" }
sp-transaction-pool = { version = "2.0.0-rc5", path = "../../../primitives/transaction-pool" }
sc-network = { version = "0.8.0-rc5", path = "../../../client/network" }
sc-consensus-aura = { version = "0.8.0-rc5", path = "../../../client/consensus/aura" }
sp-consensus-aura = { version = "0.8.0-rc5", path = "../../../primitives/consensus/aura" }
sp-consensus = { version = "0.8.0-rc5", path = "../../../primitives/consensus/common" }
Expand Down
2 changes: 0 additions & 2 deletions bin/node-template/runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ sp-block-builder = { path = "../../../primitives/block-builder", default-feature
sp-consensus-aura = { version = "0.8.0-rc5", default-features = false, path = "../../../primitives/consensus/aura" }
sp-core = { version = "2.0.0-rc5", default-features = false, path = "../../../primitives/core" }
sp-inherents = { path = "../../../primitives/inherents", default-features = false, version = "2.0.0-rc5"}
sp-io = { version = "2.0.0-rc5", default-features = false, path = "../../../primitives/io" }
sp-offchain = { version = "2.0.0-rc5", default-features = false, path = "../../../primitives/offchain" }
sp-runtime = { version = "2.0.0-rc5", default-features = false, path = "../../../primitives/runtime" }
sp-session = { version = "2.0.0-rc5", default-features = false, path = "../../../primitives/session" }
Expand Down Expand Up @@ -58,7 +57,6 @@ std = [
"sp-consensus-aura/std",
"sp-core/std",
"sp-inherents/std",
"sp-io/std",
"sp-offchain/std",
"sp-runtime/std",
"sp-session/std",
Expand Down