-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unique Chain 1.14 #1096
base: develop
Are you sure you want to change the base?
Unique Chain 1.14 #1096
Changes from 91 commits
252d797
5aaf85b
f095f68
cfec4f2
337fc78
bdf4286
57bc80e
6b3ab34
3900c0b
88c25d0
69bbd56
a66f3b3
f544220
86feec9
13545dd
900de6c
b4aa44a
85e4d33
d633c75
0b6e8e8
20f9746
17152e9
7809d5b
98ee2b1
00f7493
954c4a2
19e5714
ab98e31
ceed567
cc77e25
1aa410d
97f6e38
180b7cf
0170cb5
7327f8d
ea2a1ce
39ffa84
2e6e647
8d27e31
d492441
d1e7495
306b5e9
d3d9072
27db869
6e5b486
651df58
b6a5cf9
51334a7
b50bcad
532fe9e
4242701
d2be8ee
f78fb9f
98b47fc
dc3c817
f0952f6
b7ae407
c014c82
c6c0ffd
576fb57
999a79d
595cb44
a45de7e
ac02985
c73f924
8964827
854a89d
a5b39b3
ae7ac7f
53c1eda
5b311c9
23a6b30
f5f997c
d5d383f
f4a6a28
8ee9f3d
a4fedde
0a47d83
90bb6cb
e0d4344
3e71ab7
3825231
1ff2c81
34bcc99
78ff1f0
a2392d0
b46759e
65ce25f
4671267
5c10c5e
c6fb63d
362d33a
bd47950
7a9b109
08d4fce
bb5c345
cb09e87
d82bf71
61b9df5
687a712
1768811
2011082
20ca740
35bb081
fa004e3
e2477a2
b4eff85
2372b5f
225fa98
c5129dd
2542e61
557cd6d
b3b0f6d
4721594
eca7f53
ee24be5
44b7db2
8a22ed1
08c8994
8134368
aefdaf7
d157dbc
ac6da24
5ccdc01
9d0bc02
c949076
34ac121
2419575
faa0433
f951219
dc0eb39
a67890d
153ff96
e587a12
9cf662f
f57e39d
badf396
5f2c621
4fdc629
b9a1de7
0a8b28b
dc62b22
7cd179b
5cb4fcd
ca22c00
9fc4ba8
7737569
aa4921c
a8af122
b9189d4
b62d6a7
1a8cad6
0ebc36c
b9c65c6
ccfe032
a177a04
d4f8ab8
d312b62
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#!/bin/sh | ||
set -e | ||
BDK_DIR=$(dirname $(readlink -f "$0")) | ||
RUST_LOG=info baedeker --spec=docker -J$BDK_DIR/vendor/ --generator=docker_compose=$BDK_DIR/.bdk-env --generator=docker_compose_discover=$BDK_DIR/.bdk-env/discover.env --secret=file=$BDK_DIR/.bdk-env/secret --tla-str=relay_spec=rococo-local --input-modules='lib:baedeker-library/ops/nginx.libsonnet' --input-modules='lib:baedeker-library/ops/devtools.libsonnet' --tla-str=repoDir=$(realpath $BDK_DIR/..) $@ $BDK_DIR/rewrites.jsonnet | ||
RUST_LOG=info baedeker --spec=docker -J$BDK_DIR/vendor/ --generator=docker_compose=$BDK_DIR/.bdk-env --generator=docker_compose_discover=$BDK_DIR/.bdk-env/discover.env --secret=file=$BDK_DIR/.bdk-env/secret --tla-str=relay_spec=westend-local --tla-code=assethub_spec="import 'assethub-spec.json'" --input-modules='lib:baedeker-library/ops/nginx.libsonnet' --input-modules='lib:baedeker-library/ops/devtools.libsonnet' --tla-str=repoDir=$(realpath $BDK_DIR/..) $@ $BDK_DIR/rewrites.jsonnet | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Перенесите этот дефолт для assethub_spec в .jsonnet файлы для видимости |
||
cd $BDK_DIR/.bdk-env | ||
docker compose up -d --wait --remove-orphans |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ local | |
m = import 'baedeker-library/mixin/spec.libsonnet', | ||
; | ||
|
||
function(relay_spec) | ||
function(relay_spec, assethub_spec) | ||
|
||
local relay = { | ||
name: 'relay', | ||
|
@@ -26,7 +26,7 @@ local relay = { | |
wantedKeys: 'relay', | ||
expectedDataPath: '/parity', | ||
}, | ||
for name in ['alice', 'bob', 'charlie', 'dave', 'eve', 'ferdie'] | ||
for name in ['alice', 'bob', 'charlie', 'dave', 'eve', 'ferdie', 'gregory', 'holly', 'iggy', 'john', 'kurt'] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Не многовато ли для локального запуска? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. У меня есть убеждение, что для корректной работы коллаторов валидаторов должно быть как минимум на 1 больше. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 5 валидаторов должно хватать для обслуживания сети на 2 парачейна, я не знаю ничего чему может требоваться больше для тестовых нагрузок. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. то есть парачейны различных сетей не суммируются при расчёте количества валидаторов? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. А? Нет There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
}, | ||
}; | ||
|
||
|
@@ -64,6 +64,8 @@ local karura = { | |
[name]: { | ||
bin: $.bin, | ||
wantedKeys: 'para', | ||
parentConnection: 'internal-samedir', | ||
expectedDataPath: '/acala/data', | ||
}, | ||
for name in ['alice', 'bob'] | ||
}, | ||
|
@@ -83,24 +85,28 @@ local moonriver = { | |
[name]: { | ||
bin: $.bin, | ||
wantedKeys: 'para-nimbus', | ||
parentConnection: 'internal-samedir', | ||
expectedDataPath: '/data', | ||
}, | ||
for name in ['alith', 'baltathar'] | ||
}, | ||
}; | ||
|
||
local statemine = { | ||
name: 'statemine', | ||
local assethub = { | ||
name: 'assethub', | ||
bin: 'bin/assethub', | ||
paraId: 1004, | ||
spec: {Genesis:{ | ||
chain: 'statemine-local', | ||
modify:: m.genericPara($), | ||
}}, | ||
spec: { | ||
FromScratchGenesis: { | ||
spec: m.genericPara($)(assethub_spec), | ||
} | ||
}, | ||
nodes: { | ||
[name]: { | ||
bin: $.bin, | ||
wantedKeys: 'para', | ||
expectedDataPath: '/parity', | ||
parentConnection: 'internal-samedir', | ||
expectedDataPath: '/parity', | ||
}, | ||
for name in ['alice', 'bob'] | ||
}, | ||
|
@@ -118,6 +124,8 @@ local shiden = { | |
[name]: { | ||
bin: $.bin, | ||
wantedKeys: 'para', | ||
parentConnection: 'internal-samedir', | ||
expectedDataPath: '/data', | ||
}, | ||
for name in ['alice', 'bob'] | ||
}, | ||
|
@@ -126,6 +134,6 @@ local shiden = { | |
relay + { | ||
parachains: { | ||
[para.name]: para, | ||
for para in [unique, karura, moonriver, statemine, shiden] | ||
for para in [unique, karura, moonriver, assethub, shiden] | ||
}, | ||
} |
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,10 @@ | ||
FROM uniquenetwork/services:latest | ||
FROM uniquenetwork/services:base-nightly-1.67.0 | ||
|
||
ARG NETWORK | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive | ||
ENV TZ=Etc/UTC | ||
ENV NETWORK=$NETWORK | ||
ENV CARGO_HOME="/cargo-home" | ||
ENV PATH="/cargo-home/bin:$PATH" | ||
|
||
RUN mkdir /dev_chain | ||
COPY . /dev_chain | ||
|
||
WORKDIR /dev_chain | ||
COPY . /workdir | ||
WORKDIR /workdir | ||
|
||
RUN cargo build --profile integration-tests --features=${NETWORK}-runtime,fast-inflation | ||
RUN echo "$NETWORK" | ||
|
||
CMD cargo run --profile integration-tests --features=${NETWORK}-runtime,fast-inflation -- --dev -linfo --rpc-cors=all --unsafe-rpc-external |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,9 @@ | ||
FROM uniquenetwork/services:latest | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive | ||
ENV CARGO_HOME="/cargo-home" | ||
ENV PATH="/cargo-home/bin:$PATH" | ||
FROM uniquenetwork/services:base-nightly-1.67.0 | ||
|
||
ARG NETWORK | ||
|
||
RUN mkdir /dev_chain | ||
COPY . /dev_chain | ||
COPY . /workdir | ||
|
||
WORKDIR /dev_chain | ||
WORKDIR /workdir | ||
|
||
CMD cargo test --features=limit-testing,tests --workspace |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Точно нужно здесь прописывать частный случай импортирования спеки для запуска ассетхаба?