1
0
mirror of https://github.com/oceanprotocol/barge.git synced 2024-11-26 12:28:59 +01:00

Fix parity mode

This commit is contained in:
Javier Cortejoso 2018-11-12 09:12:49 +01:00
parent 0e29c2a385
commit 5ef0382303
3 changed files with 36 additions and 9 deletions

View File

@ -14,7 +14,10 @@ services:
parity-node: parity-node:
image: parity/parity:stable image: parity/parity:stable
command: command:
--config /parity/config/validator.toml --config /home/parity/parity/config/validator.toml
--db-path /home/parity/chains
--keys-path /home/parity/.local/share/io.parity.ethereum/keys
--base-path /home/parity/base
--engine-signer 0x00bd138abd70e2f00903268f3db08f2d25677c9e --engine-signer 0x00bd138abd70e2f00903268f3db08f2d25677c9e
--jsonrpc-interface 0.0.0.0 --jsonrpc-interface 0.0.0.0
--ws-interface 0.0.0.0 --ws-interface 0.0.0.0
@ -22,13 +25,14 @@ services:
--unsafe-expose --unsafe-expose
--jsonrpc-cors all --jsonrpc-cors all
--unlock 0x00bd138abd70e2f00903268f3db08f2d25677c9e --unlock 0x00bd138abd70e2f00903268f3db08f2d25677c9e
# entrypoint: tail -f /dev/null
volumes: volumes:
- ./parity/parity/config:/parity/config:ro - ./parity/parity/config:/home/parity/parity/config
- parity-node:/root/.local/share/io.parity.ethereum/ - parity-node:/home/parity/.local/share/io.parity.ethereum/
- ./parity/parity/authorities/validator0.json:/root/.local/share/io.parity.ethereum/keys/ocean-network/validator.json:ro - ./parity/parity/authorities/validator0.json:/home/parity/.local/share/io.parity.ethereum/keys/ocean-network/validator.json
- ./parity/parity/keys:/root/.local/share/io.parity.ethereum/keys/ocean-network - ./parity/parity/keys:/home/parity/.local/share/io.parity.ethereum/keys/ocean-network
- ./parity/parity/authorities/validator0.pwd:/parity/validator.pwd:ro - ./parity/parity/authorities/validator0.pwd:/home/parity/parity/validator.pwd
- ./parity/parity/node0.network.key:/root/.local/share/io.parity.ethereum/network/key:ro - ./parity/parity/node0.network.key:/home/parity/.local/share/io.parity.ethereum/network/key
ports: ports:
- 8545:8545 - 8545:8545
networks: networks:

View File

@ -1,5 +1,5 @@
[parity] [parity]
chain = "/parity/config/chain.json" chain = "/home/parity/parity/config/chain.json"
[rpc] [rpc]
interface = "0.0.0.0" interface = "0.0.0.0"
@ -15,7 +15,7 @@ bootnodes = [
] ]
[account] [account]
password = ["/parity/validator.pwd"] password = ["/home/parity/parity/validator.pwd"]
[mining] [mining]
reseal_on_txs = "none" reseal_on_txs = "none"

23
parity/parity/keys/validator.json Executable file → Normal file
View File

@ -0,0 +1,23 @@
{
"id": "0902d04b-f26e-5c1f-e3ae-78d2c1cb16e7",
"version": 3,
"crypto": {
"cipher": "aes-128-ctr",
"cipherparams": {
"iv": "6a829fe7bc656d85f6c2e9fd21784952"
},
"ciphertext": "1bfec0b054a648af8fdd0e85662206c65a4af0ed15fede4ad41ca9ab7b504ce2",
"kdf": "pbkdf2",
"kdfparams": {
"c": 10240,
"dklen": 32,
"prf": "hmac-sha256",
"salt": "95f96b5ee22dd537e06076eb8d7078eb7275d29af935782fe476696b11be50e5"
},
"mac": "4af2215c3cd9447a5b0512d7d1c3ea5a4435981e1c8f48bf71d7a49c0e5b4986"
},
"address": "00bd138abd70e2f00903268f3db08f2d25677c9e",
"name": "Validator0",
"meta": "{}"
}