Skip to content

Commit

Permalink
Prepare for Release v0.4.1-rc4
Browse files Browse the repository at this point in the history
  • Loading branch information
simonsso committed Sep 8, 2021
1 parent 978495c commit ffa6d08
Show file tree
Hide file tree
Showing 5 changed files with 288 additions and 262 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/release-builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
cargo build --release
- name: PackRelease
run: |
zip PolkadexNodeMacOS.zip --junk-paths target/release/polkadex-node docs/customSpecRaw.json
zip PolkadexNodeMacOS.zip --junk-paths target/release/polkadex-node extras/customSpecRaw.json
- name: Archive binary
uses: actions/upload-artifact@v1
with:
Expand Down Expand Up @@ -72,11 +72,9 @@ jobs:
run: |
./scripts/init.sh
cargo build --release
cat docs/customSpecRaw.json > customSpecRaw.json
# # echo ./target/release/polkadex-node build-spec --chain local >customSpecRaw.json #Todo this is handcrafted
- name: PackRelease
run: |
zip PolkadexNodeUbuntu.zip --junk-paths target/release/polkadex-node docs/customSpecRaw.json
zip PolkadexNodeUbuntu.zip --junk-paths target/release/polkadex-node extras/customSpecRaw.json extras/polkadex.service
- name: Archive binary
uses: actions/upload-artifact@v1
with:
Expand Down
22 changes: 11 additions & 11 deletions docs/run-a-validator.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

This guide will instruct you how to set up a validator node on the Polkadex Public Testnet.

- **Github**: https://github.com/Polkadex-Substrate/Polkadex/releases/tag/v0.4.1-rc2
- **Github**: https://github.com/Polkadex-Substrate/Polkadex/releases/tag/v0.4.1-rc4
- **Bootnode IP address**: 13.235.92.50
- **Bootnode Peer ID**: 12D3KooWH7RZYHZQjTdmzYxwPgsByESN3T71poD9vPauHwBM2xGt
- **customSpecRaw.json** https://github.com/Polkadex-Substrate/Polkadex/releases/download/v0.4.1-rc3/customSpecRaw.json
- **Bootnode Peer ID**: 12D3KooWC7VKBTWDXXic5yRevk8WS8DrDHevvHYyXaUCswM18wKd
- **customSpecRaw.json** https://github.com/Polkadex-Substrate/Polkadex/releases/download/v0.4.1-rc4/customSpecRaw.json

## Initial Set-up

Expand Down Expand Up @@ -94,10 +94,10 @@ sudo ntpq -p
### Building and Installing the `Polkadex` binary
#### Using a prebuilt
If you don't want to build the binary from source and simply prefer to download it, use the following command. Then continue at Synchronize Chain Data
`curl -O -L https://github.com/Polkadex-Substrate/Polkadex/releases/download/v0.4.1-rc3/PolkadexNodeUbuntu.zip ; unzip PolkadexNodeUbuntu.zip`
`curl -O -L https://github.com/Polkadex-Substrate/Polkadex/releases/download/v0.4.1-rc4/PolkadexNodeUbuntu.zip ; unzip PolkadexNodeUbuntu.zip`

#### Build from source
To build the `Polkadex` binary from the [Polkadex-Substrate/Polkadex](https://github.com/Polkadex-Substrate/Polkadex) repository on GitHub using the source code available in the v0.4.1-rc3 release.
To build the `Polkadex` binary from the [Polkadex-Substrate/Polkadex](https://github.com/Polkadex-Substrate/Polkadex) repository on GitHub using the source code available in the v0.4.1-rc4 release.

```
git clone https://github.com/Polkadex-Substrate/Polkadex.git
Expand All @@ -107,7 +107,7 @@ cd Polkadex
Build native code with the cargo release profile.

```
git checkout v0.4.1-rc2
git checkout v0.4.1-rc4
cargo build --release
```

Expand All @@ -118,13 +118,13 @@ cargo build --release
Download `customSpecRaw.json` file for the Polkadex Public Testnet
```
cd $HOME
curl -O -L https://github.com/Polkadex-Substrate/Polkadex/releases/download/v0.4.1-rc3/customSpecRaw.json
curl -O -L https://github.com/Polkadex-Substrate/Polkadex/releases/download/v0.4.1-rc4/customSpecRaw.json
```

You can begin syncing your node by running the following commands if you do not want to start in validator mode right away:

```
$HOME/Polkadex/target/release/polkadex-node --chain=$HOME/customSpecRaw.json --bootnodes /ip4/13.235.190.203/tcp/30333/p2p/12D3KooWH7RZYHZQjTdmzYxwPgsByESN3T71poD9vPauHwBM2xGt --pruning=archive
$HOME/Polkadex/target/release/polkadex-node --chain=$HOME/customSpecRaw.json --bootnodes /ip4/13.235.190.203/tcp/30333/p2p/12D3KooWC7VKBTWDXXic5yRevk8WS8DrDHevvHYyXaUCswM18wKd --pruning=archive
```


Expand All @@ -151,7 +151,7 @@ $HOME/Polkadex/target/release/polkadex-node --chain=$HOME/customSpecRaw.json --b
Example of node sync:

```
2021-08-17 12:46:40 🔍 Discovered new external address for our node: /ip4/13.235.190.203/tcp/30333/p2p/12D3KooWH7RZYHZQjTdmzYxwPgsByESN3T71poD9vPauHwBM2xGt
2021-08-17 12:46:40 🔍 Discovered new external address for our node: /ip4/13.235.190.203/tcp/30333/p2p/12D3KooWC7VKBTWDXXic5yRevk8WS8DrDHevvHYyXaUCswM18wKd
2021-08-17 12:46:40 [#796] 🗳 Starting signed phase round 2.
2021-08-17 12:46:40 [#838] 🗳 Starting unsigned phase(true).
2021-08-17 12:46:40 [#882] 🗳 Finalized election round with compute ElectionCompute::OnChain.
Expand Down Expand Up @@ -220,7 +220,7 @@ Your bonded account will be available under `Stashes`. You should now see a new
Once your node is fully synced, stop the process by pressing Ctrl-C. At your terminal prompt, you will now start running the node.

```
$HOME/target/release/polkadex-node --chain=$HOME/customSpecRaw.json --bootnodes /ip4/13.235.190.203/tcp/30333/p2p/12D3KooWH7RZYHZQjTdmzYxwPgsByESN3T71poD9vPauHwBM2xGt --validator --name "Validator-Tutorial"
$HOME/target/release/polkadex-node --chain=$HOME/customSpecRaw.json --bootnodes /ip4/13.235.190.203/tcp/30333/p2p/12D3KooWC7VKBTWDXXic5yRevk8WS8DrDHevvHYyXaUCswM18wKd --validator --name "Validator-Tutorial"
```
Similarly:
```
Expand Down Expand Up @@ -258,7 +258,7 @@ Wants=network-online.target
[Service]
User=ubuntu
Group=ubuntu
ExecStart=$HOME/Polkadex/target/release/polkadex-node --chain=$HOME/customSpecRaw.json --rpc-cors=all --bootnodes /ip4/13.235.190.203/tcp/30333/p2p/12D3KooWH7RZYHZQjTdmzYxwPgsByESN3T71poD9vPauHwBM2xGt --validator --name 'Validator-Tutorial'
ExecStart=$HOME/Polkadex/target/release/polkadex-node --chain=$HOME/customSpecRaw.json --rpc-cors=all --bootnodes /ip4/13.235.190.203/tcp/30333/p2p/12D3KooWC7VKBTWDXXic5yRevk8WS8DrDHevvHYyXaUCswM18wKd --validator --name 'Validator-Tutorial'
Restart=on-failure
[Install]
Expand Down
Loading

0 comments on commit ffa6d08

Please sign in to comment.