@clawlabz/clawnetwork 0.1.8 → 0.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.ts +3 -1
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
package/index.ts
CHANGED
|
@@ -23,9 +23,11 @@ const MAX_RESTART_ATTEMPTS = 3
|
|
|
23
23
|
const BOOTSTRAP_PEERS: Record<string, string[]> = {
|
|
24
24
|
mainnet: [
|
|
25
25
|
'/ip4/178.156.162.162/tcp/9711',
|
|
26
|
+
'/ip4/39.102.144.231/tcp/9711',
|
|
26
27
|
],
|
|
27
28
|
testnet: [
|
|
28
29
|
'/ip4/178.156.162.162/tcp/9721',
|
|
30
|
+
'/ip4/39.102.144.231/tcp/9721',
|
|
29
31
|
],
|
|
30
32
|
devnet: [], // local dev, no bootstrap
|
|
31
33
|
}
|
|
@@ -1710,7 +1712,7 @@ async function handle(req, res) {
|
|
|
1710
1712
|
if (cfg.syncMode) syncMode = cfg.syncMode;
|
|
1711
1713
|
if (cfg.extraBootstrapPeers) extraPeers = cfg.extraBootstrapPeers;
|
|
1712
1714
|
} catch {}
|
|
1713
|
-
const bootstrapPeers = { mainnet: ['/ip4/178.156.162.162/tcp/9711'], testnet: ['/ip4/178.156.162.162/tcp/9721'], devnet: [] };
|
|
1715
|
+
const bootstrapPeers = { mainnet: ['/ip4/178.156.162.162/tcp/9711', '/ip4/39.102.144.231/tcp/9711'], testnet: ['/ip4/178.156.162.162/tcp/9721', '/ip4/39.102.144.231/tcp/9721'], devnet: [] };
|
|
1714
1716
|
const peers = [...(bootstrapPeers[network] || []), ...extraPeers];
|
|
1715
1717
|
const args = ['start', '--network', network, '--rpc-port', String(RPC_PORT), '--p2p-port', String(p2pPort), '--sync-mode', syncMode, '--allow-genesis'];
|
|
1716
1718
|
for (const peer of peers) { args.push('--bootstrap', peer); }
|
package/openclaw.plugin.json
CHANGED