copy Copy chevron-down
Stratos-chain(English) chevron-right Stratos-chain-testnet Stratos-Chain-Testnet upgrade from v0.4.0 to v0.5.0 Since this upgrade is introducing major changes in genesis setup for PoT module. We need to restart the validator using exported genesis from v0.4.0
Please follow these steps to upgrade your Stratos-Chain Testnet
1. Backup and cleanup current blockchain data
1.1 Backup data folder
Copy mkdir ./backups/data
mv ./data/ * ./backups/data/ 1.2 Create priv_validator_state.json file in data folder
Copy echo ' {
"height": "0",
"round": "0",
"step": 0
} ' \
> ./data/priv_validator_state.json 2. Prepare genesis.json file
2.1 Download genesis.json
Copy wget https://raw.githubusercontent.com/stratosnet/stratos-chain-testnet/main/genesis.json 2.2 Replace genesis.json file in config folder with the downloaded one
3. Existing multiple nodes(optional)
If you have multiple nodes, repeat Step 1 and Step 2 for each node.
4. Update binary
Download the updated stchaind and stchaincli binary files
4.1 Check the granularity
4.2 Replace old stchaincli and stchaind binary files with these downloaded ones
4.3 Add execute permission for these downloaded binary files
4 Update binary -alternative
4.1 Compile the binary with source code
Make sure you have Go 1.15+ installed (linkarrow-up-right ).
5. Run your node
Hereafter, the node will try to catch up with the blockchain to the latest block
5.1 Run the node in background
6. Get test tokens from faucet ( https://faucet-test.thestratos.org/ )
For example: in your terminal,
Note:
1 stos = 1000000000 ustos
By default, faucet will send 100stos(100000000000ustos) to the given wallet address
7. Check your account balance
Note: Account balance is only available after your node has finished catching up with the blockchain.
Example
8. Check your node status
Example
9. Try your first tx - send
Example
Tx command:
Output:
Check this tx: