Skip to content

Commit 7d8f615

Browse files
committed
update chains specs from PAPI
This ensures faster sync at startup
1 parent a39b5a8 commit 7d8f615

File tree

8 files changed

+45
-15299
lines changed

8 files changed

+45
-15299
lines changed

README.md

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -146,15 +146,6 @@ polkadot-staking-miner --smoldot polkadot monitor --seed-or-path //Alice
146146

147147
Available networks: `polkadot`, `kusama`, `westend`
148148

149-
**Benefits of smoldot:**
150-
151-
- **Trustless operation**: Verifies proofs directly instead of trusting an RPC node
152-
- **Self-healing**: Automatically handles peer disconnections and reconnections
153-
- **No RPC dependency**: Works without relying on any specific RPC endpoint
154-
155-
**Note:** Initial sync may take a few minutes as smoldot needs to sync with the relay chain before
156-
it can validate parachain blocks. The `--uri` and `--smoldot` options are mutually exclusive.
157-
158149
### Info command
159150

160151
Check remote node's metadata.

chainspecs/kusama.json

Lines changed: 18 additions & 3443 deletions
Large diffs are not rendered by default.

chainspecs/kusama_asset_hub.json

Lines changed: 5 additions & 23 deletions
Large diffs are not rendered by default.

chainspecs/polkadot.json

Lines changed: 8 additions & 11662 deletions
Large diffs are not rendered by default.

chainspecs/polkadot_asset_hub.json

Lines changed: 5 additions & 27 deletions
Large diffs are not rendered by default.

chainspecs/westend.json

Lines changed: 8 additions & 109 deletions
Large diffs are not rendered by default.

chainspecs/westend_asset_hub.json

Lines changed: 1 addition & 19 deletions
Large diffs are not rendered by default.

src/client.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -115,17 +115,10 @@ impl Client {
115115
///
116116
/// Smoldot is a light client that verifies proofs directly, providing trustless operation.
117117
/// It handles network issues (disconnections, peer rotation) internally and is self-healing.
118-
///
119-
/// Note: Initial sync may take a few minutes as smoldot needs to sync with the relay chain
120-
/// before it can validate parachain blocks.
121118
pub async fn new_smoldot(network: SmoldotNetwork) -> Result<Self, Error> {
122119
let (relay_spec, parachain_spec) = network.chain_specs();
123120

124121
log::info!(target: LOG_TARGET, "Starting smoldot light client for {network}...");
125-
log::info!(
126-
target: LOG_TARGET,
127-
"Note: Initial sync may take a few minutes as smoldot syncs with the relay chain."
128-
);
129122

130123
// Create relay chain connection (required internally for parachain validation)
131124
let (lightclient, _relay_rpc) = LightClient::relay_chain(relay_spec).map_err(|e| {

0 commit comments

Comments
 (0)