mirror of
https://github.com/pezkuwichain/pezkuwi-runtime-templates.git
synced 2026-04-21 23:47:56 +00:00
033cf12f34
* update version for antora * improving zombienet guide (#280) * update docs version to 2.0.1 (#315) * Change all references from rococo to paseo (#330) * remove rococo-native featire from cargo.toml and other doc changes * use evm compatible accounts, and fix properties for chain spec (#326) * doc changes * bump node and docs versions * impl_runtime_apis need to be in the same file with construct runtime for the moment * account type fix * zombienet script update * slot duration fix --------- Co-authored-by: Nikita Khateev <nikita.khateev@gmail.com> Co-authored-by: Özgün Özerk <ozgunozerk.elo@gmail.com> Co-authored-by: Gustavo Gonzalez <gustavo.gonzalez@openzeppelin.com> ---------
37 lines
1.6 KiB
Plaintext
37 lines
1.6 KiB
Plaintext
:source-highlighter: highlight.js
|
|
:highlightjs-languages: rust
|
|
:github-icon: pass:[<svg class="icon"><use href="#github-icon"/></svg>]
|
|
|
|
= Async Backing
|
|
|
|
Async backing is a feature of parachains that allow to shorten the block time, get more execution time and speed up transaction inclusion in general. You can read in details what async backing is in the link:https://wiki.polkadot.network/docs/learn-async-backing#candidate-receipt[general guide] and in the link:https://wiki.polkadot.network/docs/maintain-guides-async-backing[update guide]. In our generic template we have included async backing under a feature. This page describes how can you build and test the template with async backing enabled.
|
|
|
|
== How to build
|
|
|
|
Async backing is enabled by the feature `async-backing`. You can build the template with it like this:
|
|
|
|
```bash
|
|
cargo build --release --features="async-backing"
|
|
```
|
|
|
|
== How to test
|
|
|
|
You can always test it against Paseo (it should already have enabled async backing), but the fastest way is to test against a local relay chain. In our repository you can find a script, a config and a link:https://github.com/OpenZeppelin/polkadot-runtime-templates/tree/main/generic-template/zombienet-config[manual] that will run both relay chain and a parachain. To launch a parachain with a relay chain, you will need to run these commands:
|
|
|
|
* Get the Polkadot binaries:
|
|
** If you are using some Linux distro, you can download the binaries:
|
|
+
|
|
```
|
|
./scripts/zombienet.sh init
|
|
```
|
|
** Otherwise, you have to build it from scratch. It takes
|
|
+
|
|
```
|
|
./scripts/zombienet.sh build
|
|
```
|
|
* After that, launch the network:
|
|
+
|
|
```
|
|
./scripts/zombienet.sh devnet
|
|
```
|