From c7a03775d28d79162bc2b9e0e38987985cdbcad8 Mon Sep 17 00:00:00 2001 From: "x90\" * 365" Date: Thu, 16 Aug 2018 07:21:53 -0400 Subject: [PATCH 1/4] Add parity config.toml --- config.toml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 config.toml 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 From f3359d08e7a860390a60ff408eb66d6f6ce97fdc Mon Sep 17 00:00:00 2001 From: "x90\" * 365" Date: Thu, 16 Aug 2018 07:23:53 -0400 Subject: [PATCH 2/4] Remove switches in place of parity config.toml --- run-parity.sh | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) 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 "" From de553f82f4a1689dea8bd0e472ee28a81d8b6639 Mon Sep 17 00:00:00 2001 From: "x90\" * 365" Date: Thu, 16 Aug 2018 07:28:47 -0400 Subject: [PATCH 3/4] Update README.md --- README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b253225..a91d616 100644 --- a/README.md +++ b/README.md @@ -6,8 +6,16 @@ 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 +``` + ## Support + ## License From 0dc23134439fd0d438159a5b9722b7a474442be9 Mon Sep 17 00:00:00 2001 From: "x90\" * 365" Date: Thu, 16 Aug 2018 07:31:23 -0400 Subject: [PATCH 4/4] Update README.md --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index a91d616..e219412 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,9 @@ NOTE: If you do not have an account, you will need to create an account with `pa sudo apt-get install jshon ./run-parity.sh ``` +## Regenerate Parity Config +https://paritytech.github.io/parity-config-generator/ + ## Support