Skip to content

Commit 582f5e0

Browse files
committed
Fix: Update Openethereum configs
1 parent 2bb799e commit 582f5e0

File tree

4 files changed

+25
-17
lines changed

4 files changed

+25
-17
lines changed

openethereum/Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ ARG VERSION
44

55
RUN apt-get update && apt-get install -y git curl wget pwgen vim htop gcc g++ cmake
66

7-
RUN git clone https://github.com/openethereum/openethereum --branch=release/v${VERSION} \
7+
RUN git clone https://github.com/openethereum/openethereum --branch=v${VERSION} \
88
&& cd openethereum \
99
&& cargo build --features secretstore --release \
1010
&& cp ./target/release/openethereum /openethereum
@@ -32,7 +32,6 @@ RUN set -x \
3232
&& export GNUPGHOME="$(mktemp -d)" \
3333
&& gpg --keyserver ha.pool.sks-keyservers.net --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4 \
3434
&& gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu \
35-
&& rm -r "$GNUPGHOME" /usr/local/bin/gosu.asc \
3635
&& chmod +x /usr/local/bin/gosu \
3736
&& gosu nobody true
3837

openethereum/config/dev/parity.toml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
mode = "active"
33
mode_timeout = 300
44
mode_alarm = 3600
5+
56
no_persistent_txqueue = true
6-
chain = "dev"
7+
chain = "mainnet"
78
base_path = "/parity/.local/share/io.parity.ethereum"
89
db_path = "/parity/.local/share/io.parity.ethereum/chains"
910
keys_path = "/parity/.local/share/io.parity.ethereum/keys"
@@ -13,14 +14,16 @@ port = 30303
1314
allow_ips = "all"
1415
max_pending_peers = 512
1516

17+
[ui]
18+
disable = true
19+
1620
[rpc]
21+
disable = false
1722
port = 8545
1823
interface = "0.0.0.0"
1924
hosts = ["*"]
20-
apis = ["web3", "eth", "net","parity","parity_accounts","personal", "traces", "secretstore", "parity_pubsub"]
25+
apis = ["web3", "eth", "net","parity","parity_accounts","personal", "traces", "rpc", "secretstore", "parity_pubsub"]
2126

2227
[secretstore]
2328
disable = true # users do not run a secret store node
2429

25-
[network]
26-
port = 30303

openethereum/config/mainnet/parity.toml renamed to openethereum/config/mainnet/openethereum.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ tracing = "off"
2929
db_compaction = "ssd"
3030
cache_size = 4096
3131

32+
[secretstore]
33+
disable = true # users do not run a secret store node
34+
3235
[ui]
3336
disable = true
3437

@@ -37,5 +40,5 @@ disable = false
3740
port = 8545
3841
interface = "0.0.0.0"
3942
hosts = ["*"]
40-
apis = ["web3", "eth", "net","parity","parity_accounts","personal", "traces", "rpc", "secretstore", "parity_pubsub"]
43+
apis = ["web3", "eth", "net","parity","parity_accounts","personal", "traces", "rpc", "parity_pubsub"]
4144

openethereum/docker-compose.yml

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,18 @@ services:
1313
- ./blocks/mainnet:/openethereum/.local/share/io.openethereum.ethereum/chains
1414
- ./config/mainnet/openethereum.toml:/openethereum/.local/share/io.openethereum.ethereum/config.toml
1515

16+
dev:
17+
image: quay.io/openware/openethereum:3.1.0
18+
restart: always
19+
user: root
20+
command: openethereum --no-persistent-txqueue
21+
ports:
22+
- "8545:8545"
23+
volumes:
24+
- ./keys/dev:/parity/.local/share/io.parity.ethereum/keys
25+
- ./blocks/dev:/parity/.local/share/io.parity.ethereum/chains
26+
- ./config/dev/parity.toml:/parity/.local/share/io.parity.ethereum/config.toml
27+
1628
kovan:
1729
image: quay.io/openware/openethereum:3.1.0
1830
restart: always
@@ -23,7 +35,7 @@ services:
2335
volumes:
2436
- ./keys/kovan:/parity/.local/share/io.parity.ethereum/keys
2537
- ./blocks/kovan:/parity/.local/share/io.parity.ethereum/chains
26-
- ./config/kovan/parity.toml:/parity/.local/share/io.parity.ethereum/config.toml
38+
- ./config/kovan/openethereum.toml:/parity/.local/share/io.parity.ethereum/config.toml
2739

2840
classic:
2941
image: quay.io/openware/openethereum:3.1.0
@@ -86,12 +98,3 @@ services:
8698
- ./config/dev/ss3.toml:/parity/.local/share/io.parity.ethereum/config.toml
8799
- ./config/dev/ss3.pw:/parity/.local/share/io.parity.ethereum/ss3.pw
88100

89-
dev:
90-
image: quay.io/openware/openethereum:3.1.0
91-
restart: always
92-
user: root
93-
command: openethereum
94-
volumes:
95-
- ./keys/dev:/parity/.local/share/io.parity.ethereum/keys
96-
- ./blocks/dev:/parity/.local/share/io.parity.ethereum/chains
97-
- ./config/dev/parity.toml:/parity/.local/share/io.parity.ethereum/config.toml

0 commit comments

Comments
 (0)