@@ -42,7 +42,7 @@ ADD genesis.json /genesis.json
42
42
RUN \
43
43
echo 'geth --cache 512 init /genesis.json' > geth.sh && \{{if .Unlock}}
44
44
echo 'mkdir -p /root/.ethereum/keystore/ && cp /signer.json /root/.ethereum/keystore/' >> geth.sh && \{{end}}
45
- echo $'exec geth --networkid {{.NetworkID}} --cache 512 --port {{.Port}} --nat extip:{{.IP}} --maxpeers {{.Peers}} {{.LightFlag}} --ethstats \'{{.Ethstats}}\' {{if .Bootnodes}}--bootnodes {{.Bootnodes}}{{end}} {{if .Etherbase}}--miner.etherbase {{.Etherbase}} --mine --miner.threads 1{{end}} {{if .Unlock}}--unlock 0 --password /signer.pass --mine{{end}} --miner.gastarget {{.GasTarget}} --miner. gaslimit {{.GasLimit}} --miner.gasprice {{.GasPrice}}' >> geth.sh
45
+ echo $'exec geth --networkid {{.NetworkID}} --cache 512 --port {{.Port}} --nat extip:{{.IP}} --maxpeers {{.Peers}} {{.LightFlag}} --ethstats \'{{.Ethstats}}\' {{if .Bootnodes}}--bootnodes {{.Bootnodes}}{{end}} {{if .Etherbase}}--miner.etherbase {{.Etherbase}} --mine --miner.threads 1{{end}} {{if .Unlock}}--unlock 0 --password /signer.pass --mine{{end}} --miner.gaslimit {{.GasLimit}} --miner.gasprice {{.GasPrice}}' >> geth.sh
46
46
47
47
ENTRYPOINT ["/bin/sh", "geth.sh"]
48
48
`
@@ -68,7 +68,6 @@ services:
68
68
- LIGHT_PEERS={{.LightPeers}}
69
69
- STATS_NAME={{.Ethstats}}
70
70
- MINER_NAME={{.Etherbase}}
71
- - GAS_TARGET={{.GasTarget}}
72
71
- GAS_LIMIT={{.GasLimit}}
73
72
- GAS_PRICE={{.GasPrice}}
74
73
logging:
@@ -106,7 +105,6 @@ func deployNode(client *sshClient, network string, bootnodes []string, config *n
106
105
"Bootnodes" : strings .Join (bootnodes , "," ),
107
106
"Ethstats" : config .ethstats ,
108
107
"Etherbase" : config .etherbase ,
109
- "GasTarget" : uint64 (1000000 * config .gasTarget ),
110
108
"GasLimit" : uint64 (1000000 * config .gasLimit ),
111
109
"GasPrice" : uint64 (1000000000 * config .gasPrice ),
112
110
"Unlock" : config .keyJSON != "" ,
@@ -125,7 +123,6 @@ func deployNode(client *sshClient, network string, bootnodes []string, config *n
125
123
"LightPeers" : config .peersLight ,
126
124
"Ethstats" : getEthName (config .ethstats ),
127
125
"Etherbase" : config .etherbase ,
128
- "GasTarget" : config .gasTarget ,
129
126
"GasLimit" : config .gasLimit ,
130
127
"GasPrice" : config .gasPrice ,
131
128
})
@@ -164,7 +161,6 @@ type nodeInfos struct {
164
161
etherbase string
165
162
keyJSON string
166
163
keyPass string
167
- gasTarget float64
168
164
gasLimit float64
169
165
gasPrice float64
170
166
}
@@ -179,10 +175,9 @@ func (info *nodeInfos) Report() map[string]string {
179
175
"Peer count (light nodes)" : strconv .Itoa (info .peersLight ),
180
176
"Ethstats username" : info .ethstats ,
181
177
}
182
- if info .gasTarget > 0 {
178
+ if info .gasLimit > 0 {
183
179
// Miner or signer node
184
180
report ["Gas price (minimum accepted)" ] = fmt .Sprintf ("%0.3f GWei" , info .gasPrice )
185
- report ["Gas floor (baseline target)" ] = fmt .Sprintf ("%0.3f MGas" , info .gasTarget )
186
181
report ["Gas ceil (target maximum)" ] = fmt .Sprintf ("%0.3f MGas" , info .gasLimit )
187
182
188
183
if info .etherbase != "" {
@@ -223,7 +218,6 @@ func checkNode(client *sshClient, network string, boot bool) (*nodeInfos, error)
223
218
// Resolve a few types from the environmental variables
224
219
totalPeers , _ := strconv .Atoi (infos .envvars ["TOTAL_PEERS" ])
225
220
lightPeers , _ := strconv .Atoi (infos .envvars ["LIGHT_PEERS" ])
226
- gasTarget , _ := strconv .ParseFloat (infos .envvars ["GAS_TARGET" ], 64 )
227
221
gasLimit , _ := strconv .ParseFloat (infos .envvars ["GAS_LIMIT" ], 64 )
228
222
gasPrice , _ := strconv .ParseFloat (infos .envvars ["GAS_PRICE" ], 64 )
229
223
@@ -263,7 +257,6 @@ func checkNode(client *sshClient, network string, boot bool) (*nodeInfos, error)
263
257
etherbase : infos .envvars ["MINER_NAME" ],
264
258
keyJSON : keyJSON ,
265
259
keyPass : keyPass ,
266
- gasTarget : gasTarget ,
267
260
gasLimit : gasLimit ,
268
261
gasPrice : gasPrice ,
269
262
}
0 commit comments