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
Copy file name to clipboardExpand all lines: content/md/en/docs/learn/networks-and-nodes.md
+9-9
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@ For example, Substrate blockchains are used to build the following network types
29
29
30
30
Blockchains require network nodes to be synchronised to present a consistent and up-to-date view of the blockchain state.
31
31
Each synchronised node stores a copy of the blockchain and keeps track of incoming transactions.
32
-
However, keeping a full copy of an entire blockchain requires a lot of storage and computing resources and downloading all of the blocks from genesis to the most recent isn’t practical for most use cases.
32
+
However, keeping a full copy of an entire blockchain requires a lot of storage and downloading all of the blocks from genesis to the most recent isn’t practical for most use cases.
33
33
To make it easier to maintain the security and integrity of the chain but reduce the resource requirements for clients wanting access to blockchain data, there are different types of nodes that can interact with the chain:
34
34
35
35
-[Full nodes](#full-nodes)
@@ -39,16 +39,16 @@ To make it easier to maintain the security and integrity of the chain but reduce
39
39
### Full nodes
40
40
41
41
Full nodes are a critical part of the blockchain network infrastructure and are the most common node type.
42
-
Full nodes store blockchain data and, typically, participate in common blockchain operations, such as authoring and validating blocks, receiving and verifying transactions, and serving data in response to user requests.
42
+
Full nodes store blockchain data and, typically, participate in common blockchain operations, such as validating blocks, receiving and verifying transactions, and serving data in response to user requests.
43
43
44
44

45
45
46
-
By default, full nodes are configured to store only the most recent 256 blocks and to discard state older than that—with the exception of the genesis block—to prevent the full node from growing indefinitely and consuming all available disk space.
47
-
You can configure the number of blocks a full node retains.
46
+
By default, full nodes are configured to store all the blocks but only the most recent 256 states. They discard states older than that — with the exception of the genesis block — to prevent the full node from consuming too much disk space.
47
+
You can configure the number of blocks a full node retains (see `--{state,blocks}-pruning` options).
48
48
49
-
Although older blocks are discarded, full nodes retain all of the [block headers](/reference/glossary/#header)from the genesis block to the most recent block to validate that the state is correct.
50
-
Because the full node has access to all of the block headers, it can be used to rebuild the state of the entire blockchain by executing all of the blocks from the genesis block.
51
-
Thus it requires much more computation to retrieve information about some previous state, and an archive should generally be used instead.
49
+
Although older states are discarded, full nodes retain all the blocks from genesis to the head, allowing to rebuild all the intermediate states.
50
+
It is achieved by taking the genesis state as initial state and executing all the blocks successively on top of if.
51
+
Retrieving information about some previous state thus requires an expensive computation which can be avoided by using an archive node, which does not discard the states.
52
52
53
53
Full nodes allow you to read the current state of the chain and to submit and validate transactions directly on the network.
54
54
By discarding state from older blocks, a full node requires much less disk space than an archive node.
@@ -57,8 +57,8 @@ If you need to query historical blocks, you should purge the full node then rest
57
57
58
58
### Archive nodes
59
59
60
-
Archive nodes are similar to full nodes except that they store all past blocks with complete state available for every block.
61
-
Archive nodes are most often used by utilities—such as block explorers, wallets, discussion forums, and similar applications—that need access to historical information.
60
+
Archive nodes are similar to full nodes except that they do not discard old states. As a result, they have complete state for every block available without computation.
61
+
For this reason, archive nodes are often used by utilities — such as block explorers, wallets, discussion forums, and similar applications — that need access to historical information.
0 commit comments