You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This code includes the compact WebAssembly binary (`WASM_BINARY`) and the uncompressed WebAssembly binary generated by the compiler (`WASM_BINARY_BLOATY`) in its compilation result, and the final executable binary for the project is generated.
63
63
64
-
At each stage of the build process, the WebAssembly binary is compressed to a smaller and smaller size.
64
+
At each stage of the build process, the WebAssembly binary is compressed to a smaller size than earlier.
65
65
For example, you can compare the sizes of each WebAssembly binary artifact for Polkadot:
66
66
67
67
```bash
@@ -118,7 +118,7 @@ For example, you might want to use the native runtime for initial synchronizatio
118
118
To use the native runtime for synchronizing blocks, you can start the node using the `--execution-syncing native` or `--execution-syncing native-else-wasm` command-line option.
119
119
120
120
For information about using the command-line options to specify an execution strategy for all or specific operations, see [node-template](/reference/command-line-tools/node-template).
121
-
For information about the execution strategy variant, see [ExecutionStrategy](https://paritytech.github.io/substrate/master/sp_state_machine/enum.ExecutionStrategy.html)
121
+
For information about the execution strategy variant, see [ExecutionStrategy](https://paritytech.github.io/substrate/master/sc_cli/arg_enums/enum.ExecutionStrategy.html)
122
122
123
123
## Building WebAssembly without a native runtime
124
124
@@ -127,7 +127,7 @@ After an initial WebAssembly runtime is provided, the blob that represents the W
127
127
In some rare cases, you might want to compile the WebAssembly target without the native runtime.
128
128
For example, if you're testing a WebAssembly runtime to prepare for a forkless upgrade, you might want to compile just the new WebAssembly binary.
129
129
130
-
Although it's a rare use case, you can use the [build-only-wasm.sh](https://github.com/paritytech/substrate/blob/master/.maintain/build-only-wasm.sh) script to build the `no_std` WebAssembly binary without compiling the native runtime.
130
+
Although it's a rare use case, you can use the [build-only-wasm.sh](https://github.com/paritytech/polkadot-sdk/blob/master/substrate/.maintain/build-only-wasm.sh) script to build the `no_std` WebAssembly binary without compiling the native runtime.
131
131
132
132
You can also use the `wasm-runtime-overrides` command-line option to load the WebAssembly from the file system.
133
133
@@ -138,6 +138,6 @@ This option is primarily used for faster compile time when you don't need to upd
Copy file name to clipboardExpand all lines: content/md/en/docs/build/genesis-configuration.md
+6-1Lines changed: 6 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,11 @@ description:
4
4
keywords:
5
5
---
6
6
7
+
<divclass="warning">
8
+
<strong>⚠️ WARNING:</strong> This page contains outdated information. Please refer to the <ahref="https://paritytech.github.io/polkadot-sdk/master/frame_support/pallet_macros/attr.genesis_build.html">Rust docs</a> for the most up-to-date documentation on this topic.
9
+
</div>
10
+
11
+
7
12
The first block produced by any blockchain is referred to as the genesis block.
8
13
The hash associated with this block is the top-level parent of all blocks produced after that first block.
Ultimately, the `RuntimeGenesisConfig` is exposed by way of the [`ChainSpec`](https://paritytech.github.io/substrate/master/sc_chain_spec/trait.ChainSpec.html) trait.
195
200
196
-
For a more complete example of genesis storage configuration for Substrate, see the [chain specification that ships with the Substrate code base](https://github.com/paritytech/substrate/blob/master/bin/node/cli/src/chain_spec.rs).
201
+
For a more complete example of genesis storage configuration for Substrate, see the [chain specification that ships with the Substrate code base](https://github.com/paritytech/polkadot-sdk/blob/master/substrate/bin/node/cli/src/chain_spec.rs).
Copy file name to clipboardExpand all lines: content/md/en/docs/build/origins.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,7 +50,7 @@ You can look at the source code of the [Sudo module](https://paritytech.github.i
50
50
In addition to the three core origin types, runtime developers are also able to define custom origins.
51
51
These can be used as authorization checks inside functions from specific modules in your runtime, or to define custom access-control logic around the sources of runtime requests.
52
52
53
-
Customizing origins allows runtime developers to specify valid origins depending on their runtime logic. For example, it may be desirable to restrict access of certain functions to special custom origins and authorize dispatch calls only from members of a [collective](https://github.com/paritytech/substrate/tree/master/frame/collective). The advantage of using custom origins is that it provides runtime developers a way to configure privileged access over dispatch calls to the runtime.
53
+
Customizing origins allows runtime developers to specify valid origins depending on their runtime logic. For example, it may be desirable to restrict access of certain functions to special custom origins and authorize dispatch calls only from members of a [collective](https://github.com/paritytech/polkadot-sdk/tree/master/substrate/frame/collective). The advantage of using custom origins is that it provides runtime developers a way to configure privileged access over dispatch calls to the runtime.
- View the [Sudo pallet](https://github.com/paritytech/substrate/tree/master/frame/sudo) to see how it allows a user to call with `Root` and `Signed` origin.
63
+
- View the [Sudo pallet](https://github.com/paritytech/polkadot-sdk/tree/master/substrate/frame/sudo) to see how it allows a user to call with `Root` and `Signed` origin.
64
64
65
-
- View the [Timestamp pallet](https://github.com/paritytech/substrate/tree/master/frame/timestamp) to see how it validates an a call with `None` origin.
65
+
- View the [Timestamp pallet](https://github.com/paritytech/polkadot-sdk/tree/master/substrate/frame/timestamp) to see how it validates an a call with `None` origin.
66
66
67
-
- View the [Collective pallet](https://github.com/paritytech/substrate/tree/master/frame/collective) to see how it constructs a custom `Member` origin.
67
+
- View the [Collective pallet](https://github.com/paritytech/polkadot-sdk/tree/master/substrate/frame/collective) to see how it constructs a custom `Member` origin.
68
68
69
69
- View our recipe for creating and using a custom origin.
Copy file name to clipboardExpand all lines: content/md/en/docs/build/pallet-coupling.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -104,10 +104,10 @@ In general, loose coupling provides more flexibility than tight coupling and is
104
104
It guarantees better maintainability, reusability, and extensibility of your code.
105
105
However, tight coupling can be useful for pallets that are less complex or that have more overlap in methods and types than differences.
106
106
107
-
In FRAME, there are two pallets that are tightly coupled to [`pallet_treasury`](https://github.com/paritytech/substrate/tree/master/frame/treasury):
107
+
In FRAME, there are two pallets that are tightly coupled to [`pallet_treasury`](https://github.com/paritytech/polkadot-sdk/tree/master/substrate/frame/treasury):
As a general rule, the more complex a pallet is, the less desirable it is to tightly couple it.
113
113
This evokes a concept in computer science called [cohesion](<https://en.wikipedia.org/wiki/Cohesion_(computer_science)>), a metric used to examine the overall quality of a software system.
Copy file name to clipboardExpand all lines: content/md/en/docs/build/remote-procedure-calls.md
+10-11Lines changed: 10 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -55,24 +55,23 @@ The way to do it is through a [JSON-RPC](/reference/glossary#json-rpc) proxy tha
55
55
56
56
## RPCs for remote_externalities
57
57
58
-
Substrate also provides some specialized RPC methods to call [`remote_externalities`](https://github.com/paritytech/substrate/blob/master/utils/frame/remote-externalities/src/lib.rs#L320-#L764) for a node.
58
+
Substrate also provides some specialized RPC methods to call [`remote_externalities`](https://github.com/paritytech/polkadot-sdk/blob/master/substrate/utils/frame/remote-externalities/src/lib.rs#L347-#L746) for a node.
59
59
These specialized methods for remote externalities enable you to make one-off RPC calls to a Substrate node to get information about blocks and headers.
60
60
The information returned by these calls can be useful for testing purposes with tools like [`try-runtime`](/reference/command-line-tools/try-runtime/).
61
61
62
62
## Endpoints
63
63
64
-
When you start a Substrate node locally, there are two endpoints available by default:
64
+
When you start a Substrate node locally, there is one endpoint available by default:
Most of the Substrate front-end libraries and tools use the WebSocket endpoint to interact with the blockchain.
70
-
For example, if you use the Polkadot-JS application to connect to a local node or a public chain, your are typically connecting to the WebSocket endpoint.
68
+
Most of the Substrate front-end libraries and tools use the endpoint to interact with the blockchain.
69
+
For example, if you use the Polkadot-JS application to connect to a local node or a public chain, your are typically connecting to the HTTP & WebSocket endpoint.
71
70
WebSocket connections allow for bidirectional communication between the front-end application and the backend node responding to requests.
72
-
However, you can also call RPC methods individually without keeping an open communication channel by connecting to the HTTP endpoint using `curl` commands.
71
+
However, you can also call RPC methods individually without keeping an open communication channel by connecting to the endpoint using `curl` commands.
73
72
For example, you can use curl commands to get system information or subscribe to a chain to receive notification when there are specific types of changes to the block state.
74
73
75
-
To call RPC methods using the HTTP endpoint:
74
+
To call RPC methods using the endpoint:
76
75
77
76
1. Open a terminal shell and change to the root directory for the Substrate node template.
78
77
@@ -85,7 +84,7 @@ To call RPC methods using the HTTP endpoint:
85
84
3. Connect to the local node and call the `rpc_methods` endpoint by running the following command:
Copy file name to clipboardExpand all lines: content/md/en/docs/build/tx-weights-fees.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -107,7 +107,7 @@ To account for this variability, the Transaction Payment pallet provides the [`F
107
107
The default update function is inspired by the Polkadot network and implements a targeted adjustment in which a target saturation level of block weight is defined.
108
108
If the previous block is more saturated, then the fees are slightly increased.
109
109
Similarly, if the previous block has fewer transactions than the target, fees are decreased by a small amount.
110
-
For more information about fee multiplier adjustments, see the [Web3 research page](https://w3f-research.readthedocs.io/en/latest/polkadot/overview/2-token-economics.html#relay-chain-transaction-fees-and-per-block-transaction-limits).
110
+
For more information about fee multiplier adjustments, see the [Web3 research page](https://research.web3.foundation/Polkadot/overview/token-economics#relay-chain-transaction-fees-and-per-block-transaction-limits).
111
111
112
112
## Transactions with special requirements
113
113
@@ -397,7 +397,7 @@ You can use Substrate **benchmarking functions** and `frame-benchmarking` calls
-[Custom weights for the Example pallet](https://github.com/paritytech/substrate/blob/master/frame/examples/basic/src/weights.rs)
401
-
-[Web3 Foundation Research](https://w3f-research.readthedocs.io/en/latest/polkadot/overview/2-token-economics.html#relay-chain-transaction-fees-and-per-block-transaction-limits)
400
+
-[Custom weights for the Example pallet](https://github.com/paritytech/polkadot-sdk/blob/master/substrate/frame/examples/basic/src/weights.rs)
401
+
-[Web3 Foundation Research](https://research.web3.foundation/Polkadot/overview/token-economics#relay-chain-transaction-fees-and-per-block-transaction-limits)
The following sample [GitHub action](https://github.com/substrate-developer-hub/substrate-node-template/blob/main/.github/workflows/build-publish-image.yml) builds and publishes a Docker image to DockerHub.
415
+
The following sample [GitHub action](https://github.com/substrate-developer-hub/substrate-node-template/blob/main/.github/workflows/release.yml) builds and publishes a Docker image to DockerHub.
416
416
In most cases, you trigger this action using a manual workflow or when a new release is published.
417
417
418
418
Note that you must add secrets to your GitHub repository or organization as described in [Encrypted secrets](https://docs.github.com/en/actions/security-guides/encrypted-secrets) to publish images securely.
0 commit comments