Skip to content

Commit 8df985f

Browse files
authored
Merge pull request #1346 from input-output-hk/ensemble/1300-mithril-relay-p2p-poc
Mithril relay P2P network for signatures PoC
2 parents 33e154d + fb8548b commit 8df985f

File tree

37 files changed

+3242
-97
lines changed

37 files changed

+3242
-97
lines changed

.github/workflows/actions/build-upload-mithril-artifact/action.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,6 @@ runs:
4646
target/release/mithril-client.exe
4747
target/release/mithril-signer
4848
target/release/mithril-signer.exe
49+
target/release/mithril-relay
50+
target/release/mithril-relay.exe
4951
if-no-files-found: error

.github/workflows/actions/prepare-distribution/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ runs:
5858
EOF
5959
6060
cargo metadata --quiet --no-deps | \
61-
jq -r '.packages | sort_by(.name) | .[] | select([.name] | inside(["mithrildemo", "mithril-end-to-end"]) | not) | "| \(.name) | `\(.version)` |"' \
61+
jq -r '.packages | sort_by(.name) | .[] | select([.name] | inside(["mithrildemo", "mithril-end-to-end", "mithril-relay"]) | not) | "| \(.name) | `\(.version)` |"' \
6262
>> ./release-notes-addon.txt
6363
6464
- name: Add compatibility table

.github/workflows/ci.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
- name: Build Mithril workspace & publish artifacts
4646
uses: ./.github/workflows/actions/build-upload-mithril-artifact
4747
with:
48-
binaries-build-args: --bin mithril-aggregator --bin mithril-signer --bin mithril-client --features bundle_openssl
48+
binaries-build-args: --bin mithril-aggregator --bin mithril-signer --bin mithril-client --bin mithril-relay --features bundle_openssl
4949
libraries-build-args: --package mithril-stm --package mithril-client
5050

5151
- name: Build Debian packages
@@ -54,6 +54,7 @@ jobs:
5454
cargo deb --no-build --package mithril-aggregator
5555
cargo deb --no-build --package mithril-signer
5656
cargo deb --no-build --package mithril-client-cli
57+
cargo deb --no-build --package mithril-relay
5758
5859
- name: Publish Debian packages
5960
uses: actions/upload-artifact@v3
@@ -219,6 +220,12 @@ jobs:
219220
matrix:
220221
era: ${{ fromJSON(needs.build-ubuntu-X64.outputs.eras) }}
221222
run_id: [1,2,3]
223+
extra_args: [""]
224+
225+
include:
226+
- era: ${{ fromJSON(needs.build-ubuntu-X64.outputs.eras)[0] }}
227+
run_id: 3
228+
extra_args: "--use-p2p-network"
222229
steps:
223230
- name: Checkout sources
224231
uses: actions/checkout@v3
@@ -239,11 +246,12 @@ jobs:
239246
chmod +x ./bin/mithril-aggregator
240247
chmod +x ./bin/mithril-client
241248
chmod +x ./bin/mithril-signer
249+
chmod +x ./bin/mithril-relay
242250
chmod +x ./mithril-end-to-end
243251
mkdir artifacts
244252
245253
- name: Test
246-
run: ./mithril-end-to-end --bin-directory ./bin --work-directory=./artifacts --devnet-scripts-directory=./mithril-test-lab/mithril-devnet --mithril-era=${{ matrix.era }}
254+
run: ./mithril-end-to-end --bin-directory ./bin --work-directory=./artifacts --devnet-scripts-directory=./mithril-test-lab/mithril-devnet --mithril-era=${{ matrix.era }} ${{ matrix.extra_args }}
247255

248256
- name: Upload E2E Tests Artifacts
249257
if: ${{ failure() }}
@@ -299,7 +307,7 @@ jobs:
299307
strategy:
300308
fail-fast: false
301309
matrix:
302-
project: [ mithril-aggregator, mithril-client-cli, mithril-signer ]
310+
project: [ mithril-aggregator, mithril-client-cli, mithril-signer, mithril-relay ]
303311

304312
include:
305313
- project: mithril-client-cli

0 commit comments

Comments
 (0)