File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ import { LightClient, randomSecretKey } from "light-client-js";
1414
1515const client = new LightClient ();
1616
17- // / Default config for testnet
17+ // Default config for testnet
1818const testnetConfig = `
1919chain = "testnet"
2020
@@ -62,7 +62,7 @@ discovery_local_address = false
6262bootnode_mode = false
6363
6464`
65- // / Default config for mainnet
65+ // Default config for mainnet
6666const mainnetConfig = `
6767chain = "mainnet"
6868
@@ -124,8 +124,12 @@ discovery_local_address = false
124124bootnode_mode = false
125125
126126`
127+ // Start a mainnet node
128+ await client .start ({ type: " MainNet" , config: mainnetConfig }, randomSecretKey (), " info" );
129+ // Start a testnet node
130+ await client .start ({ type: " TestNet" , config: testnetConfig }, randomSecretKey (), " info" );
131+
127132
128- await client .start ({ type: " MainNet" , config }, randomSecretKey (), " info" );
129133console .log (await client .getTipHeader ())
130134```
131135
You can’t perform that action at this time.
0 commit comments