mirror of
https://github.com/pezkuwichain/pezkuwi-runtime-templates.git
synced 2026-04-21 23:47:56 +00:00
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 teyrchains 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.pezkuwi.network/docs/learn-async-backing#candidate-receipt[general guide] and in the link:https://wiki.pezkuwi.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/pezkuwi-runtime-templates/tree/main/generic-template/zombienet-config[manual] that will run both relay chain and a teyrchain. To launch a teyrchain with a relay chain, you will need to run these commands:
|
|
|
|
* Get the Pezkuwi 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
|
|
```
|