-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathxcm-opal.jsonnet
More file actions
116 lines (111 loc) · 3.06 KB
/
Copy pathxcm-opal.jsonnet
File metadata and controls
116 lines (111 loc) · 3.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
local
m = import 'baedeker-library/mixin/spec.libsonnet',
ops = import 'baedeker-library/ops/common-args.libsonnet',
;
function(relay_spec)
local relay = {
name: 'relay',
bin: 'bin/polkadot',
validatorIdAssignment: 'staking',
spec: {Genesis:{
chain: relay_spec,
modify:: bdk.mixer([
m.genericRelay($, hrmp = std.join([], [])),
m.simplifyGenesisName(),
{
_genesis+: {
configuration+: {
config+: {
async_backing_params+: {
allowed_ancestry_len: 3,
max_candidate_depth: 4,
},
validation_upgrade_cooldown: 200,
validation_upgrade_delay: 100,
minimum_validation_upgrade_delay: 15,
minimum_backing_votes: 2,
needed_approvals: 2,
scheduler_params+: {
lookahead: 3,
},
executor_params: [
{ MaxMemoryPages: 8192 },
{ PvfExecTimeout: [ "Backing", 2500 ] },
{ PvfExecTimeout: [ "Approval", 15000 ] }
],
},
},
},
},
m.unsimplifyGenesisName(),
]),
}},
nodes: {
[name]: {
bin: $.bin,
wantedKeys: 'relay',
expectedDataPath: '/parity',
extraArgs: [
'--network-backend=libp2p',
],
},
for name in ['alice', 'bob', 'charlie', 'dave', 'eve']
},
};
local opal = {
name: 'opal',
bin: 'bin/unique',
paraId: 2037,
spec: {Genesis:{
modify:: m.genericPara($),
}},
nodes: {
[name]: {
bin: $.bin,
wantedKeys: {
_controller: "Sr25519",
_stash: "Sr25519",
aura: "Sr25519",
orcl: 'Sr25519',
sessionKeys: {
"aura": "aura"
},
},
extraArgs: [
'--increase-future-pool',
'--pool-type=fork-aware',
],
extraArgsInternalParent: [
'--network-backend=libp2p',
]
},
for name in ['alice', 'bob', 'charlie']
},
};
local assethub = {
name: 'assethub',
bin: 'bin/assethub',
paraId: 1000,
spec: {Genesis:{
chain: 'asset-hub-westend-local',
modify:: m.genericPara($),
}},
nodes: {
[name]: {
bin: $.bin,
wantedKeys: 'para',
parentConnection: 'internal-samedir',
expectedDataPath: '/parity',
extraArgsInternalParent: [
'--network-backend=libp2p',
]
},
for name in ['alice', 'bob']
},
};
ops.mixinExtraNodeArgsAllChains(relay + {
parachains: {
[para.name]: para,
for para in [opal, assethub]
},
}, ['-lxcm=trace'])