Skip to content

Parity Node with Parity UI option using Kovan or Ropsten Test Network config

License

Notifications You must be signed in to change notification settings

ltfschoen/parity-testnet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Parity Node using Kovan and Ropsten Test Networks

Setup Parity Client (macOS)

echo 'export PATH=/Applications/Parity\ Ethereum.app/Contents/MacOS:$PATH' >> ~/.bash_profile && source ~/.bash_profile

Setup Ropsten Test Network (PoW)

echo -e "enode://20c9ad97c081d63397d7b685a412227a40e23c8bdc6688c6f37e97cfbc22d2b4d1db1510d8f61e6a8866ad7f0e17c02b14182d37ea7c3c8b9c2683aeb6b733a1@52.169.14.227:30303\nenode://6ce05930c72abc632c58e2e4324f7c7ea478cec0ed4fa2528982cf34483094e9cbc9216e7aa349691242576d552a2a56aaeae426c5303ded677ce455ba1acd9d@13.84.180.240:30303" >> ropstenpeers.txt
  • Create a signer account for use by the Miner in the Ropsten Network. Entered and confirmed a fake password when prompted. It returns the account address (i.e. 0x56183a35c057f32dc71307dec8b8c60da055eae2) and creates a key in testnet/keys/ropsten
parity account new --chain ropsten --keys-path "/Users/Ls/Library/Application Support/io.parity.ethereum/testnet/keys" --db-path "Users/Ls/Library/Application Support/io.parity.ethereum/testnet/chains"
  • Replace relevant addresses for Operation Options and Miner Options in kovan-config.toml with the account address that was generated

  • Remove engine_signer = "0x56183a35c057f32dc71307dec8b8c60da055eae2" since cannot set engine signer on a PoW chain

  • Run the Parity Node with the custom configuration that uses the Ropsten Network

    • UI version
      • Add to WebSocket config origins = ["http://127.0.0.1:8180"]
parity ui --config ./kovan-config.toml -lrpc=trace
  • CLI version
parity --config ./ropsten-config.toml -lrpc=trace

Setup Kovan Test Network (PoA)

  • Create kovan-config.toml

  • Create a signer account for use by the Miner in the Kovan Network. Entered and confirmed a fake password when prompted. It returns the account address (i.e. 0x983696f4594180ab677e76835834f871b21fe5b2) and creates a key in testnet/keys/kovan

parity account new --chain kovan --keys-path "/Users/Ls/Library/Application Support/io.parity.ethereum/testnet/keys" --db-path "Users/Ls/Library/Application Support/io.parity.ethereum/testnet/chains"
  • Note: Running the above avoids error:
Consensus signer account not found for the current chain. You can create an account via RPC, UI or `parity account new --chain kovan --keys-path /Users/Ls/Library/Application Support/io.parity.ethereum/testnet/keys`.
  • Replace relevant addresses for Operation Options and Miner Options in kovan-config.toml with the account address that was generated and ensure that use /Users/Ls instead of $HOME for the path value. See openethereum/parity-ethereum#7392

  • Create Log file and Passwords file for Kovan Testnet

mkdir -p "$HOME/Library/Application Support/io.parity.ethereum/testnet/log/";
touch "$HOME/Library/Application Support/io.parity.ethereum/testnet/log/parity.log";

mkdir -p "$HOME/Library/Application Support/io.parity.ethereum/testnet/passwords";
touch "$HOME/Library/Application Support/io.parity.ethereum/testnet/passwords/node.pwds";
echo 'test123456' >> "$HOME/Library/Application Support/io.parity.ethereum/testnet/passwords/node.pwds";
  • Run the Parity Node with the custom configuration that uses the Kovan Network

    • UI version.
      • Change UI Options to force = true
      • Add to WebSocket config origins = ["http://127.0.0.1:8180"]
parity ui --config ./kovan-config.toml
parity ui --config ./kovan-config.toml -lrpc=trace
  • It prompts you with the following:

    Unable to make a connection to the Parity Secure API. To update your secure token or to generate a new one, run parity signer new-token and paste the generated token into the space below. Ensure that both the Parity node and this machine connecting have computer clocks in-sync with each other and with a timestamp server, ensuring both successful token validation and block operations.

  • Generate a Token from your computer and paste the output into the browser

parity signer new-token --config /Users/Ls/code/blockchain/parity-docker/kovan-config.toml --db-path "Users/Ls/Library/Application Support/io.parity.ethereum/testnet/chains"
  • NOTE: This does not work, it just shows warnings that indicate the an invalid token was provided.

  • CLI version

parity --config ./kovan-config.toml -lrpc=trace

References:

About

Parity Node with Parity UI option using Kovan or Ropsten Test Network config

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published