@@ -117,7 +117,7 @@ var dashboardContent = `
117
117
<br/>
118
118
<p>To run an archive node, download <a href="/{{.GethGenesis}}"><code>{{.GethGenesis}}</code></a> and start Geth with:
119
119
<pre>geth --datadir=$HOME/.{{.Network}} init {{.GethGenesis}}</pre>
120
- <pre>geth --networkid={{.NetworkID}} --datadir=$HOME/.{{.Network}} --cache=1024 --syncmode=full{{if .Ethstats}} --ethstats='{{.Ethstats}}'{{end}} --bootnodes={{.BootnodesFullFlat }}</pre>
120
+ <pre>geth --networkid={{.NetworkID}} --datadir=$HOME/.{{.Network}} --cache=1024 --syncmode=full{{if .Ethstats}} --ethstats='{{.Ethstats}}'{{end}} --bootnodes={{.BootnodesFlat }}</pre>
121
121
</p>
122
122
<br/>
123
123
<p>You can download Geth from <a href="https://geth.ethereum.org/downloads/" target="about:blank">https://geth.ethereum.org/downloads/</a>.</p>
@@ -136,7 +136,7 @@ var dashboardContent = `
136
136
<br/>
137
137
<p>To run a full node, download <a href="/{{.GethGenesis}}"><code>{{.GethGenesis}}</code></a> and start Geth with:
138
138
<pre>geth --datadir=$HOME/.{{.Network}} init {{.GethGenesis}}</pre>
139
- <pre>geth --networkid={{.NetworkID}} --datadir=$HOME/.{{.Network}} --cache=512{{if .Ethstats}} --ethstats='{{.Ethstats}}'{{end}} --bootnodes={{.BootnodesFullFlat }}</pre>
139
+ <pre>geth --networkid={{.NetworkID}} --datadir=$HOME/.{{.Network}} --cache=512{{if .Ethstats}} --ethstats='{{.Ethstats}}'{{end}} --bootnodes={{.BootnodesFlat }}</pre>
140
140
</p>
141
141
<br/>
142
142
<p>You can download Geth from <a href="https://geth.ethereum.org/downloads/" target="about:blank">https://geth.ethereum.org/downloads/</a>.</p>
@@ -158,7 +158,7 @@ var dashboardContent = `
158
158
<br/>
159
159
<p>To run a light node, download <a href="/{{.GethGenesis}}"><code>{{.GethGenesis}}</code></a> and start Geth with:
160
160
<pre>geth --datadir=$HOME/.{{.Network}} init {{.GethGenesis}}</pre>
161
- <pre>geth --networkid={{.NetworkID}} --datadir=$HOME/.{{.Network}} --syncmode=light{{if .Ethstats}} --ethstats='{{.Ethstats}}'{{end}} --bootnodes={{.BootnodesLightFlat }}</pre>
161
+ <pre>geth --networkid={{.NetworkID}} --datadir=$HOME/.{{.Network}} --syncmode=light{{if .Ethstats}} --ethstats='{{.Ethstats}}'{{end}} --bootnodes={{.BootnodesFlat }}</pre>
162
162
</p>
163
163
<br/>
164
164
<p>You can download Geth from <a href="https://geth.ethereum.org/downloads/" target="about:blank">https://geth.ethereum.org/downloads/</a>.</p>
@@ -177,7 +177,7 @@ var dashboardContent = `
177
177
<br/>
178
178
<p>To run an embedded node, download <a href="/{{.GethGenesis}}"><code>{{.GethGenesis}}</code></a> and start Geth with:
179
179
<pre>geth --datadir=$HOME/.{{.Network}} init {{.GethGenesis}}</pre>
180
- <pre>geth --networkid={{.NetworkID}} --datadir=$HOME/.{{.Network}} --cache=16 --ethash.cachesinmem=1 --syncmode=light{{if .Ethstats}} --ethstats='{{.Ethstats}}'{{end}} --bootnodes={{.BootnodesLightFlat }}</pre>
180
+ <pre>geth --networkid={{.NetworkID}} --datadir=$HOME/.{{.Network}} --cache=16 --ethash.cachesinmem=1 --syncmode=light{{if .Ethstats}} --ethstats='{{.Ethstats}}'{{end}} --bootnodes={{.BootnodesFlat }}</pre>
181
181
</p>
182
182
<br/>
183
183
<p>You can download Geth from <a href="https://geth.ethereum.org/downloads/" target="about:blank">https://geth.ethereum.org/downloads/</a>.</p>
@@ -208,7 +208,7 @@ var dashboardContent = `
208
208
<pre>geth --datadir=$HOME/.{{.Network}} init {{.GethGenesis}}</pre>
209
209
</p>
210
210
<p>With your local chain initialized, you can start the Ethereum Wallet:
211
- <pre>ethereumwallet --rpc $HOME/.{{.Network}}/geth.ipc --node-networkid={{.NetworkID}} --node-datadir=$HOME/.{{.Network}}{{if .Ethstats}} --node-ethstats='{{.Ethstats}}'{{end}} --node-bootnodes={{.BootnodesFullFlat }}</pre>
211
+ <pre>ethereumwallet --rpc $HOME/.{{.Network}}/geth.ipc --node-networkid={{.NetworkID}} --node-datadir=$HOME/.{{.Network}}{{if .Ethstats}} --node-ethstats='{{.Ethstats}}'{{end}} --node-bootnodes={{.BootnodesFlat }}</pre>
212
212
<p>
213
213
<br/>
214
214
<p>You can download the Ethereum Wallet from <a href="https://github.com/ethereum/mist/releases" target="about:blank">https://github.com/ethereum/mist/releases</a>.</p>
@@ -229,7 +229,7 @@ var dashboardContent = `
229
229
<pre>geth --datadir=$HOME/.{{.Network}} init {{.GethGenesis}}</pre>
230
230
</p>
231
231
<p>With your local chain initialized, you can start Mist:
232
- <pre>mist --rpc $HOME/.{{.Network}}/geth.ipc --node-networkid={{.NetworkID}} --node-datadir=$HOME/.{{.Network}}{{if .Ethstats}} --node-ethstats='{{.Ethstats}}'{{end}} --node-bootnodes={{.BootnodesFullFlat }}</pre>
232
+ <pre>mist --rpc $HOME/.{{.Network}}/geth.ipc --node-networkid={{.NetworkID}} --node-datadir=$HOME/.{{.Network}}{{if .Ethstats}} --node-ethstats='{{.Ethstats}}'{{end}} --node-bootnodes={{.BootnodesFlat }}</pre>
233
233
<p>
234
234
<br/>
235
235
<p>You can download the Mist browser from <a href="https://github.com/ethereum/mist/releases" target="about:blank">https://github.com/ethereum/mist/releases</a>.</p>
@@ -261,7 +261,7 @@ var dashboardContent = `
261
261
<p>Inside your Java code you can now import the geth archive and connect to Ethereum:
262
262
<pre>import org.ethereum.geth.*;</pre>
263
263
<pre>
264
- Enodes bootnodes = new Enodes();{{range .BootnodesLight }}
264
+ Enodes bootnodes = new Enodes();{{range .Bootnodes }}
265
265
bootnodes.append(new Enode("{{.}}"));{{end}}
266
266
267
267
NodeConfig config = new NodeConfig();
@@ -294,7 +294,7 @@ node.start();
294
294
<pre>
295
295
var error: NSError?
296
296
297
- let bootnodes = GethNewEnodesEmpty(){{range .BootnodesLight }}
297
+ let bootnodes = GethNewEnodesEmpty(){{range .Bootnodes }}
298
298
bootnodes?.append(GethNewEnode("{{.}}", &error)){{end}}
299
299
300
300
let config = GethNewNodeConfig()
@@ -595,44 +595,42 @@ func deployDashboard(client *sshClient, network string, conf *config, config *da
595
595
statsLogin = ""
596
596
}
597
597
indexfile := new (bytes.Buffer )
598
- bootCpp := make ([]string , len (conf .bootFull ))
599
- for i , boot := range conf .bootFull {
598
+ bootCpp := make ([]string , len (conf .bootnodes ))
599
+ for i , boot := range conf .bootnodes {
600
600
bootCpp [i ] = "required:" + strings .TrimPrefix (boot , "enode://" )
601
601
}
602
- bootHarmony := make ([]string , len (conf .bootFull ))
603
- for i , boot := range conf .bootFull {
602
+ bootHarmony := make ([]string , len (conf .bootnodes ))
603
+ for i , boot := range conf .bootnodes {
604
604
bootHarmony [i ] = fmt .Sprintf ("-Dpeer.active.%d.url=%s" , i , boot )
605
605
}
606
- bootPython := make ([]string , len (conf .bootFull ))
607
- for i , boot := range conf .bootFull {
606
+ bootPython := make ([]string , len (conf .bootnodes ))
607
+ for i , boot := range conf .bootnodes {
608
608
bootPython [i ] = "'" + boot + "'"
609
609
}
610
610
template .Must (template .New ("" ).Parse (dashboardContent )).Execute (indexfile , map [string ]interface {}{
611
- "Network" : network ,
612
- "NetworkID" : conf .Genesis .Config .ChainId ,
613
- "NetworkTitle" : strings .Title (network ),
614
- "EthstatsPage" : config .ethstats ,
615
- "ExplorerPage" : config .explorer ,
616
- "WalletPage" : config .wallet ,
617
- "FaucetPage" : config .faucet ,
618
- "GethGenesis" : network + ".json" ,
619
- "BootnodesFull" : conf .bootFull ,
620
- "BootnodesLight" : conf .bootLight ,
621
- "BootnodesFullFlat" : strings .Join (conf .bootFull , "," ),
622
- "BootnodesLightFlat" : strings .Join (conf .bootLight , "," ),
623
- "Ethstats" : statsLogin ,
624
- "Ethash" : conf .Genesis .Config .Ethash != nil ,
625
- "CppGenesis" : network + "-cpp.json" ,
626
- "CppBootnodes" : strings .Join (bootCpp , " " ),
627
- "HarmonyGenesis" : network + "-harmony.json" ,
628
- "HarmonyBootnodes" : strings .Join (bootHarmony , " " ),
629
- "ParityGenesis" : network + "-parity.json" ,
630
- "PythonGenesis" : network + "-python.json" ,
631
- "PythonBootnodes" : strings .Join (bootPython , "," ),
632
- "Homestead" : conf .Genesis .Config .HomesteadBlock ,
633
- "Tangerine" : conf .Genesis .Config .EIP150Block ,
634
- "Spurious" : conf .Genesis .Config .EIP155Block ,
635
- "Byzantium" : conf .Genesis .Config .ByzantiumBlock ,
611
+ "Network" : network ,
612
+ "NetworkID" : conf .Genesis .Config .ChainId ,
613
+ "NetworkTitle" : strings .Title (network ),
614
+ "EthstatsPage" : config .ethstats ,
615
+ "ExplorerPage" : config .explorer ,
616
+ "WalletPage" : config .wallet ,
617
+ "FaucetPage" : config .faucet ,
618
+ "GethGenesis" : network + ".json" ,
619
+ "Bootnodes" : conf .bootnodes ,
620
+ "BootnodesFlat" : strings .Join (conf .bootnodes , "," ),
621
+ "Ethstats" : statsLogin ,
622
+ "Ethash" : conf .Genesis .Config .Ethash != nil ,
623
+ "CppGenesis" : network + "-cpp.json" ,
624
+ "CppBootnodes" : strings .Join (bootCpp , " " ),
625
+ "HarmonyGenesis" : network + "-harmony.json" ,
626
+ "HarmonyBootnodes" : strings .Join (bootHarmony , " " ),
627
+ "ParityGenesis" : network + "-parity.json" ,
628
+ "PythonGenesis" : network + "-python.json" ,
629
+ "PythonBootnodes" : strings .Join (bootPython , "," ),
630
+ "Homestead" : conf .Genesis .Config .HomesteadBlock ,
631
+ "Tangerine" : conf .Genesis .Config .EIP150Block ,
632
+ "Spurious" : conf .Genesis .Config .EIP155Block ,
633
+ "Byzantium" : conf .Genesis .Config .ByzantiumBlock ,
636
634
})
637
635
files [filepath .Join (workdir , "index.html" )] = indexfile .Bytes ()
638
636
@@ -651,7 +649,7 @@ func deployDashboard(client *sshClient, network string, conf *config, config *da
651
649
harmonySpecJSON , _ := conf .Genesis .MarshalJSON ()
652
650
files [filepath .Join (workdir , network + "-harmony.json" )] = harmonySpecJSON
653
651
654
- paritySpec , err := newParityChainSpec (network , conf .Genesis , conf .bootFull )
652
+ paritySpec , err := newParityChainSpec (network , conf .Genesis , conf .bootnodes )
655
653
if err != nil {
656
654
return nil , err
657
655
}
0 commit comments