diff --git a/README.md b/README.md index b253225..e219412 100644 --- a/README.md +++ b/README.md @@ -6,8 +6,19 @@ are secured with the same password. It is useful when operating keepers, as all of them currently assume that their Ethereum accounts are permanently unlocked on the node. - +NOTE: If you do not have an account, you will need to create an account with `parity account new` and enter the password into a file named *password* beside the *run-parity.sh* script. + + ## Install +*Ubuntu Server* +``` +sudo apt-get install jshon +./run-parity.sh +``` +## Regenerate Parity Config +https://paritytech.github.io/parity-config-generator/ + ## Support + ## License diff --git a/config.toml b/config.toml new file mode 100644 index 0000000..31260d6 --- /dev/null +++ b/config.toml @@ -0,0 +1,22 @@ +# This config should be placed in following path: +# ~/.local/share/io.parity.ethereum/config.toml + +[account] +# From: [0x000000000000] you'll be able to send transactions without password. +unlock = ["0x000000000000"] +# File at ./password should contain passwords to unlock your accounts. One password per line. +password = ["./password"] + +[rpc] +# Threads for handling incoming connections for HTTP JSON-RPC server. +server_threads = 12 +# Turn on additional processing threads in all HTTP JSON-RPC servers. Setting this to non-zero value allows parallel execution of cpu-heavy queries. +processing_threads = 12 + +[footprint] +# Will keep up to 4096MB data in Database cache. +cache_size_db = 4096 + +[snapshots] +# Disables automatic periodic snapshots. +disable_periodic = true \ No newline at end of file diff --git a/run-parity.sh b/run-parity.sh index 01d8b02..23a304f 100755 --- a/run-parity.sh +++ b/run-parity.sh @@ -3,14 +3,8 @@ cd "$(dirname "$0")" # Configuration -export PASSWORD_FILE=./password export RESTART_INTERVAL=60 -if [ ! -f ${PASSWORD_FILE} ]; then - echo "File '${PASSWORD_FILE}' with the account unlock password must exist!" - exit -1 -fi - # Enumerate accounts export KEYS_DIRECTORY=$HOME/.local/share/io.parity.ethereum/keys/ethereum/ export KEY_FILES=$(find ${KEYS_DIRECTORY} -type f ! -name "address_book.json" ! -name "dapps_*" ! -name ".DS_Store") @@ -23,15 +17,7 @@ echo "Account addresses: ${ACCOUNTS_COMMA_SEPARATED}" echo "Starting parity..." echo "" -parity \ - --force-ui \ - --no-periodic-snapshot \ - --mode=active \ - --cache-size=4096 \ - --jsonrpc-threads=12 \ - --jsonrpc-server-threads=12 \ - --unlock ${ACCOUNTS_COMMA_SEPARATED} \ - --password ${PASSWORD_FILE} +parity # If parity died, give the server some time and then restart it. echo ""