Skip to content

Commit

Permalink
Merge pull request #27 from functionland/feature/update
Browse files Browse the repository at this point in the history
updated readme
  • Loading branch information
ehsan6sha authored Sep 28, 2023
2 parents 128bd25 + 458d414 commit dc9a41b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,4 @@

# Local dev
.tmp

.history/*
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,19 @@ Read more about [Owned Economies](https://github.com/SugarFunge/OwnedEconomies).

1st Validator:
```bash
cargo run --release -- --chain ./customSpecRaw.json --enable-offchain-indexing true --base-path=.tmp/node01 --port=30334 --rpc-port 9944 --rpc-cors=all --rpc-methods=Unsafe --rpc-external --validator --name "${1st Validator Name}" --node-key=${1st Validator Node key} --password-filename "${path to file}"
./target/release/sugarfunge-node key insert --base-path=/var/lib/.sugarfunge-node/data/node01 --keystore-path=/var/lib/.sugarfunge-node/keys/node01 --chain customSpecRaw.json --scheme Sr25519 --suri "word1 ... word12" --password-filename "/var/lib/.sugarfunge-node/passwords/password1.txt" --key-type aura

./target/release/sugarfunge-node key insert --base-path=/var/lib/.sugarfunge-node/data/node01 --keystore-path=/var/lib/.sugarfunge-node/keys/node01 --chain customSpecRaw.json --scheme Ed25519 --suri "word1 ... word12" --password-filename "/var/lib/.sugarfunge-node/passwords/password1.txt" --key-type gran

cargo run --release -- --chain ./customSpecRaw.json --enable-offchain-indexing true --base-path=/var/lib/.sugarfunge-node/data/node01 --keystore-path=/var/lib/.sugarfunge-node/keys/node01 --port=30334 --rpc-port 9944 --rpc-cors=all --rpc-methods=Unsafe --rpc-external --validator --name MyNode01 --password-filename="/var/lib/.sugarfunge-node/passwords/password1.txt" --node-key=peerID_secret_key
```
2nd Validator:
``` bash
cargo run --release -- --chain ./customSpecRaw.json --enable-offchain-indexing true --base-path=.tmp/node02 --port=30335 --rpc-port 9945 --rpc-cors=all --rpc-methods=Unsafe --rpc-external --bootnodes /ip4/127.0.0.1/tcp/30334/p2p/${1st Validator Local node identity} --validator --name "${2nd Validator Name}" --node-key=${2nd Validator Node key} --password-filename "${path to file}"
./target/release/sugarfunge-node key insert --base-path=/var/lib/.sugarfunge-node/data/node02 --keystore-path=/var/lib/.sugarfunge-node/keys/node02 --chain customSpecRaw.json --scheme Sr25519 --suri "word1 ... word12" --password-filename "/var/lib/.sugarfunge-node/passwords/password2.txt" --key-type aura

./target/release/sugarfunge-node key insert --base-path=/var/lib/.sugarfunge-node/data/node02 --keystore-path=/var/lib/.sugarfunge-node/keys/node02 --chain customSpecRaw.json --scheme Ed25519 --suri "word1 ... word12" --password-filename "/var/lib/.sugarfunge-node/passwords/password2.txt" --key-type gran

cargo run --release -- --chain ./customSpecRaw.json --enable-offchain-indexing true --base-path=/var/lib/.sugarfunge-node/data/node02 --keystore-path=/var/lib/.sugarfunge-node/keys/node02 --port=30335 --rpc-port 9945 --rpc-cors=all --rpc-methods=Unsafe --rpc-external --validator --name MyNode02 --password-filename="/var/lib/.sugarfunge-node/passwords/password2.txt" --node-key=peerID_secret_key --bootnodes /ip4/127.0.0.1/tcp/30334/p2p/12D3KooWBeXV65svCyknCvG1yLxXVFwRxzBLqvBJnUF6W84BLugv
```
[//]: # (SBP-M1 review: insufficient documentation)
[//]: # (SBP-M1 review: limited tests)
Expand Down

0 comments on commit dc9a41b

Please sign in to comment.