Skip to content

Commit

Permalink
Adjust required post in networking and docker/systemd instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilFattakhov committed Apr 1, 2024
1 parent 06298c5 commit 7c3a8e5
Show file tree
Hide file tree
Showing 8 changed files with 2 additions and 13 deletions.
2 changes: 0 additions & 2 deletions docker-compose-auto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,11 @@ services:
ports:
# If port 30533 is already occupied by something else, replace all
# occurrences of `30533` in this file with another value
- "0.0.0.0:30533:30533/udp"
- "0.0.0.0:30533:30533/tcp"
restart: unless-stopped
command: [
"farm",
"--node-rpc-url", "ws://node:9944",
"--listen-on", "/ip4/0.0.0.0/udp/30533/quic-v1",
"--listen-on", "/ip4/0.0.0.0/tcp/30533",
# Replace `WALLET_ADDRESS` with your Polkadot.js wallet address
"--reward-address", "WALLET_ADDRESS",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Below is a table summarizing the necessary port configurations for uninterrupted
|-------|---------------------|---------------------------------------------------------|----------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------|
| 30333 | TCP/UDP (QUIC) | Always public | Substrate networking P2P | <ul><li>[Space Acres](../../../category/space-acres/)</li><li>[Advanced CLI Node (Consensus)](../../../category/advanced-cli)</li></ul> | Connecting to the rest of the network for exchanging blocks, transactions, PoT gossip, etc. |
| 30433 | TCP/UDP (QUIC) | Always public | Subspace networking P2P | <ul><li>[Space Acres](../../../category/space-acres/)</li><li>[Advanced CLI Node (Consensus)](../../../category/advanced-cli)</li></ul> | Connecting to the rest of the network and retrieving archival history. |
| 30533 | TCP/UDP (QUIC) | Always public | Subspace networking P2P | <ul><li>[Advanced CLI Node (Consensus)](../../../category/advanced-cli)</li></ul> | Connecting to the rest of the network and retrieving archival history, not required for Space Acres because the node and the farmer share the Subspace networking stack there. |
| 30533 | TCP (QUIC) | Always public | Subspace networking P2P | <ul><li>[Advanced CLI Node (Consensus)](../../../category/advanced-cli)</li></ul> | Connecting to the rest of the network and retrieving archival history, not required for Space Acres because the node and the farmer share the Subspace networking stack there. |
| 40333 | TCP (QUIC) | Always public | Subspace networking P2P | <ul><li>[Advanced CLI Node (Domain)](../../../category/operators-and-nominators)</li></ul> | Connecting to the rest of the domain network for transaction gossipping. |
| 9944 | TCP (HTTP/WebSocket)| Public: <ul><li>RPC server</li></ul> Private: <ul><li>Internal node-to-farmer connections</li></ul> | Consensus RPC port | <ul><li>[Advanced CLI Node (Consensus)](../../../category/advanced-cli)</li></ul> | RPC server: Exposes various details about the blockchain (real-time and historical events, storage, transactions, etc) as well as submitting transactions to the network (balance transfers, staking, etc). <br /><br /> Farmer connections: The farmer connects in unsafe mode and receives notifications about slot challenges for block/vote production, archival history extension events, querying of various chain details. Nodes that process farmer connections should never be exposed publicly as public exposure of unsafe APIs can be used to not only prevent farmer from working, but even block node sync completely. |
| 9945 | TCP (HTTP/WebSocket)| Public: <ul><li>RPC server</li></ul> | Domain RPC port | <ul><li>[Advanced CLI Node (Domain)](../../../category/operators-and-nominators)</li></ul> | RPC server: Expose various details about blockchain (real-time and historical events, storage, transactions, etc.) as well as submitting transactions to the network (balance transfers, interacting with smart contracts, etc). |
Expand Down
2 changes: 0 additions & 2 deletions docs/farming-&-staking/staking/operators/tips-operator.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -234,13 +234,11 @@ services:
ports:
# If port 30533 is already occupied by something else, replace all
# occurrences of 30533 in this file with another value
- "0.0.0.0:30533:30533/udp"
- "0.0.0.0:30533:30533/tcp"
restart: unless-stopped
command: [
"farm",
"--node-rpc-url", "ws://node:9944",
"--listen-on", "/ip4/0.0.0.0/udp/30533/quic-v1",
"--listen-on", "/ip4/0.0.0.0/tcp/30533",
# Replace WALLET_ADDRESS with your Polkadot.js wallet address
"--reward-address", "WALLET_ADDRESS",
Expand Down
2 changes: 0 additions & 2 deletions src/components/DockerFileGenerator/DockerFileLatest.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -136,14 +136,12 @@ services:
volumes:
- ${formData.farmerData ? formData.farmerData : "farmer-data"}:/var/subspace:rw
ports:
- "0.0.0.0:${formData.farmerPort}:30533/udp"
- "0.0.0.0:${formData.farmerPort}:30533/tcp"
restart: unless-stopped
command:
[
"farm",
"--node-rpc-url", "ws://node:9944",
"--listen-on", "/ip4/0.0.0.0/udp/30533/quic-v1",
"--listen-on", "/ip4/0.0.0.0/tcp/30533",
"--reward-address", "${formData.rewardAddress}",
"path=/var/subspace,size=${formData.plotSize}"
Expand Down
2 changes: 0 additions & 2 deletions src/components/DockerFileGenerator/DockerFilePreRelease.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -136,14 +136,12 @@ services:
volumes:
- ${formData.farmerData ? formData.farmerData : "farmer-data"}:/var/subspace:rw
ports:
- "0.0.0.0:${formData.farmerPort}:30533/udp"
- "0.0.0.0:${formData.farmerPort}:30533/tcp"
restart: unless-stopped
command:
[
"farm",
"--node-rpc-url", "ws://node:9944",
"--listen-on", "/ip4/0.0.0.0/udp/30533/quic-v1",
"--listen-on", "/ip4/0.0.0.0/tcp/30533",
"--reward-address", "${formData.rewardAddress}",
"path=/var/subspace,size=${formData.plotSize}"
Expand Down
1 change: 0 additions & 1 deletion src/components/SystemdServiceFileGenerator/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@ Group=${formData.user}
ExecStart=${formData.farmerBinPath} \\
farm \\
--reward-address ${formData.rewardAddress} \\
--listen-on /ip4/0.0.0.0/udp/${formData.farmerPort}/quic-v1 \\
--listen-on /ip4/0.0.0.0/tcp/${formData.farmerPort} \\
path=${formData.farmerData},size=${formData.plotSize} ${formData.extraFarmerArgs === "" ? "" : "\\\n"}\ ${formData.extraFarmerArgs}
KillSignal=SIGINT
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Below is a table summarizing the necessary port configurations for uninterrupted
|-------|---------------------|---------------------------------------------------------|----------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------|
| 30333 | TCP/UDP (QUIC) | Always public | Substrate networking P2P | <ul><li>[Space Acres](../../../category/space-acres/)</li><li>[Advanced CLI Node (Consensus)](../../../category/advanced-cli)</li></ul> | Connecting to the rest of the network for exchanging blocks, transactions, PoT gossip, etc. |
| 30433 | TCP/UDP (QUIC) | Always public | Subspace networking P2P | <ul><li>[Space Acres](../../../category/space-acres/)</li><li>[Advanced CLI Node (Consensus)](../../../category/advanced-cli)</li></ul> | Connecting to the rest of the network and retrieving archival history. |
| 30533 | TCP/UDP (QUIC) | Always public | Subspace networking P2P | <ul><li>[Advanced CLI Node (Consensus)](../../../category/advanced-cli)</li></ul> | Connecting to the rest of the network and retrieving archival history, not required for Space Acres because the node and the farmer share the Subspace networking stack there. |
| 30533 | TCP (QUIC) | Always public | Subspace networking P2P | <ul><li>[Advanced CLI Node (Consensus)](../../../category/advanced-cli)</li></ul> | Connecting to the rest of the network and retrieving archival history, not required for Space Acres because the node and the farmer share the Subspace networking stack there. |
| 40333 | TCP (QUIC) | Always public | Subspace networking P2P | <ul><li>[Advanced CLI Node (Domain)](../../../category/operators-and-nominators)</li></ul> | Connecting to the rest of the domain network for transaction gossipping. |
| 9944 | TCP (HTTP/WebSocket)| Public: <ul><li>RPC server</li></ul> Private: <ul><li>Internal node-to-farmer connections</li></ul> | Consensus RPC port | <ul><li>[Advanced CLI Node (Consensus)](../../../category/advanced-cli)</li></ul> | RPC server: Exposes various details about the blockchain (real-time and historical events, storage, transactions, etc) as well as submitting transactions to the network (balance transfers, staking, etc). <br /><br /> Farmer connections: The farmer connects in unsafe mode and receives notifications about slot challenges for block/vote production, archival history extension events, querying of various chain details. Nodes that process farmer connections should never be exposed publicly as public exposure of unsafe APIs can be used to not only prevent farmer from working, but even block node sync completely. |
| 9945 | TCP (HTTP/WebSocket)| Public: <ul><li>RPC server</li></ul> | Domain RPC port | <ul><li>[Advanced CLI Node (Domain)](../../../category/operators-and-nominators)</li></ul> | RPC server: Expose various details about blockchain (real-time and historical events, storage, transactions, etc.) as well as submitting transactions to the network (balance transfers, interacting with smart contracts, etc). |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -234,13 +234,11 @@ services:
ports:
# If port 30533 is already occupied by something else, replace all
# occurrences of 30533 in this file with another value
- "0.0.0.0:30533:30533/udp"
- "0.0.0.0:30533:30533/tcp"
restart: unless-stopped
command: [
"farm",
"--node-rpc-url", "ws://node:9944",
"--listen-on", "/ip4/0.0.0.0/udp/30533/quic-v1",
"--listen-on", "/ip4/0.0.0.0/tcp/30533",
# Replace WALLET_ADDRESS with your Polkadot.js wallet address
"--reward-address", "WALLET_ADDRESS",
Expand Down

0 comments on commit 7c3a8e5

Please sign in to comment.