Skip to content

Commit 8f50bd4

Browse files
committed
update
1 parent be06936 commit 8f50bd4

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

wasm/light-client-js/README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import { LightClient, randomSecretKey } from "light-client-js";
1414

1515
const client = new LightClient();
1616

17-
/// Default config for testnet
17+
// Default config for testnet
1818
const testnetConfig = `
1919
chain = "testnet"
2020
@@ -62,7 +62,7 @@ discovery_local_address = false
6262
bootnode_mode = false
6363
6464
`
65-
/// Default config for mainnet
65+
// Default config for mainnet
6666
const mainnetConfig = `
6767
chain = "mainnet"
6868
@@ -124,8 +124,12 @@ discovery_local_address = false
124124
bootnode_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");
129133
console.log(await client.getTipHeader())
130134
```
131135

0 commit comments

Comments
 (0)