@@ -117,7 +117,7 @@ var dashboardContent = `
117117 <br/>
118118 <p>To run an archive node, download <a href="/{{.GethGenesis}}"><code>{{.GethGenesis}}</code></a> and start Geth with:
119119 <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>
121121 </p>
122122 <br/>
123123 <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 = `
136136 <br/>
137137 <p>To run a full node, download <a href="/{{.GethGenesis}}"><code>{{.GethGenesis}}</code></a> and start Geth with:
138138 <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>
140140 </p>
141141 <br/>
142142 <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 = `
158158 <br/>
159159 <p>To run a light node, download <a href="/{{.GethGenesis}}"><code>{{.GethGenesis}}</code></a> and start Geth with:
160160 <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>
162162 </p>
163163 <br/>
164164 <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 = `
177177 <br/>
178178 <p>To run an embedded node, download <a href="/{{.GethGenesis}}"><code>{{.GethGenesis}}</code></a> and start Geth with:
179179 <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>
181181 </p>
182182 <br/>
183183 <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 = `
208208 <pre>geth --datadir=$HOME/.{{.Network}} init {{.GethGenesis}}</pre>
209209 </p>
210210 <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>
212212 <p>
213213 <br/>
214214 <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 = `
229229 <pre>geth --datadir=$HOME/.{{.Network}} init {{.GethGenesis}}</pre>
230230 </p>
231231 <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>
233233 <p>
234234 <br/>
235235 <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 = `
261261 <p>Inside your Java code you can now import the geth archive and connect to Ethereum:
262262 <pre>import org.ethereum.geth.*;</pre>
263263<pre>
264- Enodes bootnodes = new Enodes();{{range .BootnodesLight }}
264+ Enodes bootnodes = new Enodes();{{range .Bootnodes }}
265265bootnodes.append(new Enode("{{.}}"));{{end}}
266266
267267NodeConfig config = new NodeConfig();
@@ -294,7 +294,7 @@ node.start();
294294<pre>
295295var error: NSError?
296296
297- let bootnodes = GethNewEnodesEmpty(){{range .BootnodesLight }}
297+ let bootnodes = GethNewEnodesEmpty(){{range .Bootnodes }}
298298bootnodes?.append(GethNewEnode("{{.}}", &error)){{end}}
299299
300300let config = GethNewNodeConfig()
@@ -595,44 +595,42 @@ func deployDashboard(client *sshClient, network string, conf *config, config *da
595595 statsLogin = ""
596596 }
597597 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 {
600600 bootCpp [i ] = "required:" + strings .TrimPrefix (boot , "enode://" )
601601 }
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 {
604604 bootHarmony [i ] = fmt .Sprintf ("-Dpeer.active.%d.url=%s" , i , boot )
605605 }
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 {
608608 bootPython [i ] = "'" + boot + "'"
609609 }
610610 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 ,
636634 })
637635 files [filepath .Join (workdir , "index.html" )] = indexfile .Bytes ()
638636
@@ -651,7 +649,7 @@ func deployDashboard(client *sshClient, network string, conf *config, config *da
651649 harmonySpecJSON , _ := conf .Genesis .MarshalJSON ()
652650 files [filepath .Join (workdir , network + "-harmony.json" )] = harmonySpecJSON
653651
654- paritySpec , err := newParityChainSpec (network , conf .Genesis , conf .bootFull )
652+ paritySpec , err := newParityChainSpec (network , conf .Genesis , conf .bootnodes )
655653 if err != nil {
656654 return nil , err
657655 }
0 commit comments