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
1) 9944 - Websocket. This port is used by bittensor. It only accepts connections from localhost. Make sure this port is firewalled off from the public domain.
46
-
2) 9933 - RPC. This port is opened, but not used.
47
-
3) 30333 - p2p socket. This port accepts connections from other subtensor nodes. Make sure your firewall(s) allow incoming traffic to this port.
45
+
1) 9944 - Websocket. This port is used by bittensor. It only accepts connections from localhost. Make sure this port is firewalled off from the public domain.
46
+
2) 9933 - RPC. This port is opened, but not used.
47
+
3) 30333 - p2p socket. This port accepts connections from other subtensor nodes. Make sure your firewall(s) allow incoming traffic to this port.
48
48
* It is assumed your default outgoing traffic policy is ACCEPT. If not, make sure outbound traffic to port 30333 is allowed.
49
49
50
+
---
51
+
52
+
## For Subnet Development
53
+
54
+
If you are developing and testing subnet incentive mechanism, you will need to run a local subtensor node. Follow the detailed step-by-step instructions provided in the document [Running subtensor locally](./docs/running-subtensor-locally.md) to run either a lite node or an archive node. Also see the [**Subtensor Nodes** section in Bittensor Developer Documentation](https://docs.bittensor.com/subtensor-nodes).
55
+
56
+
### Lite node vs Archive node
57
+
58
+
For an explanation of lite node, archive node and how you can run your local subtensor node in these modes, see [Lite node vs archive node](https://docs.bittensor.com/subtensor-nodes#lite-node-vs-archive-node) section on [Bittensor Developer Docs](https://docs.bittensor.com/).
59
+
60
+
---
61
+
62
+
## For Subtensor Development
63
+
50
64
### Installation
51
65
First, complete the [basic Rust setup instructions](./docs/rust-setup.md).
52
66
53
-
### Run
67
+
**Build and Run**
54
68
55
69
Use Rust's native `cargo` command to build and launch the template node:
56
70
57
71
```sh
58
72
cargo run --release -- --dev
59
73
```
60
74
61
-
### Build
75
+
**Build only**
62
76
63
-
The `cargo run` command will perform an initial build. Use the following command to build the node
77
+
The above `cargo run` command will perform an initial build and launch the node. Use the following command to build the node
64
78
without launching it:
65
79
66
80
```sh
67
81
cargo build --release
68
82
```
69
83
84
+
<!--
85
+
86
+
/** When I ran "cargo doc" it gave me a bunch of errors. And when I did "cargo doc --open" it gave same bunch of errors, and did not open. Also, I don't think the binary is "subtensor". It is "node-subtensor". We should uncomment this section after testing and validating and fixing this section.
87
+
*/
88
+
70
89
### Embedded Docs
71
90
72
91
Once the project has been built, the following command can be used to explore all parameters and
@@ -75,10 +94,11 @@ subcommands:
75
94
```sh
76
95
./target/release/subtensor -h
77
96
```
97
+
-->
78
98
79
-
## Run
99
+
## Other ways to launch the node
80
100
81
-
The provided`cargo run` command will launch a temporary node and its state will be discarded after
101
+
The above`cargo run` command will launch a temporary node and its state will be discarded after
82
102
you terminate the process. After the project has been built, there are other ways to launch the
83
103
node.
84
104
@@ -148,7 +168,7 @@ Running code coverage
148
168
bash scripts/code-coverage.sh
149
169
```
150
170
151
-
> Note; above requires `cargo-tarpaulin` is installed to the host, eg. `cargo install cargo-tarpaulin`
171
+
> Note: They above requires `cargo-tarpaulin` is installed to the host, eg. `cargo install cargo-tarpaulin`
152
172
> Development chain means that the state of our chain will be in a tmp folder while the nodes are
153
173
> running. Also, **alice** account will be authority and sudo account as declared in the
@@ -317,5 +342,5 @@ The above copyright notice and this permission notice shall be included in all c
317
342
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
0 commit comments