From 769ffcff2cc456066cabc8b4819b7284f87c322d Mon Sep 17 00:00:00 2001 From: Yaroslav Bolyukin Date: Tue, 28 May 2024 13:13:44 +0000 Subject: [PATCH] doc: add opal async-backing example config --- --- /dev/null +++ b/.baedeker/xcm-opal-async-backing.jsonnet @@ -0,0 +1,68 @@ +local +m = import 'baedeker-library/mixin/spec.libsonnet', +; + +function(relay_spec) + +local relay = { + name: 'relay', + bin: 'bin/polkadot', + validatorIdAssignment: 'staking', + spec: {Genesis:{ + chain: relay_spec, + modify:: bdk.mixer([ + m.genericRelay($), + { + genesis+: { + runtimeGenesis+: { + runtime+: { + configuration+: { + config+: { + async_backing_params+: { + allowed_ancestry_len: 3, + max_candidate_depth: 4, + }, + scheduling_lookahead:5, + max_validators_per_core:1, + minimum_backing_votes:1, + needed_approvals:1, + on_demand_cores:5, + }, + }, + }, + }, + }, + }, + ]), + }}, + nodes: { + [name]: { + bin: $.bin, + wantedKeys: 'relay', + }, + for name in ['alice', 'bob', 'charlie', 'dave', 'eve'] + }, +}; + +local opal = { + name: 'opal', + bin: 'bin/unique', + paraId: 1001, + spec: {Genesis:{ + modify:: m.genericPara($), + }}, + nodes: { + [name]: { + bin: $.bin, + wantedKeys: 'para', + }, + for name in ['alice', 'bob', 'charlie', 'dave', 'eve'] + }, +}; + +relay + { + parachains: { + [para.name]: para, + for para in [opal] + }, +} -- gitstuff