Skip to content
This repository was archived by the owner on Sep 2, 2020. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

<https://chat.makerdao.com/channel/keeper>
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
<https://chat.makerdao.com/channel/keeper>

## License

Expand Down
22 changes: 22 additions & 0 deletions config.toml
Original file line number Diff line number Diff line change
@@ -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
16 changes: 1 addition & 15 deletions run-parity.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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 ""
Expand Down