-
Notifications
You must be signed in to change notification settings - Fork 699
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Start the equivocation detection loop from the complex relayer (#2507) (
#2512) * Impl SubstrateEquivocationDetectionPipeline for Millau * Impl SubstrateEquivocationDetectionPipeline for Rialto * Make BridgeHubSignedExtension more generic * Define generate_report_equivocation_call_builder!() macro * Impl SubstrateEquivocationDetectionPipeline for Rococo * Impl SubstrateEquivocationDetectionPipeline for Wococo * Impl SubstrateEquivocationDetectionPipeline for Kusama * Impl SubstrateEquivocationDetectionPipeline for Polkadot * Complex relayer simplification - remove `signer` and `transactions_mortality` and add `tx_params` - change the order of some fields * Add equivocation detection CLI traits * Complex relayer: start equivocation detectin loop * Update runtimes regeneration script * Equivocation loop: Fix infinite loop * Revert "Complex relayer: start equivocation detectin loop" This reverts commit b518ef85679d73654f9f0e2add38cd3839552057. * Add subcommand for starting the equivocation detection loop * Fixes * Initialize empty metrics for the equivocations detector loop
- Loading branch information
Showing
59 changed files
with
26,206 additions
and
611 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
deployments/bridges/rialto-millau/dashboard/prometheus/targets.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
- targets: | ||
- relay-millau-rialto:9616 | ||
- detect-millau-to-rialto-equivocations:9616 | ||
- detect-rialto-to-millau-equivocations:9616 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
...nts/bridges/rialto-millau/entrypoints/detect-millau-to-rialto-equivocations-entrypoint.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
set -eu | ||
|
||
sleep 15 | ||
|
||
exec /home/user/substrate-relay detect-equivocations millau-to-rialto \ | ||
--source-host millau-node-alice \ | ||
--source-port 9944 \ | ||
--source-signer //Rialto.HeadersAndMessagesRelay \ | ||
--source-transactions-mortality=64 \ | ||
--target-host rialto-node-alice \ | ||
--target-port 9944 \ | ||
--prometheus-host=0.0.0.0 |
13 changes: 13 additions & 0 deletions
13
...nts/bridges/rialto-millau/entrypoints/detect-rialto-to-millau-equivocations-entrypoint.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
set -eu | ||
|
||
sleep 15 | ||
|
||
exec /home/user/substrate-relay detect-equivocations rialto-to-millau \ | ||
--source-host rialto-node-alice \ | ||
--source-port 9944 \ | ||
--source-signer //Millau.HeadersAndMessagesRelay \ | ||
--source-transactions-mortality=64 \ | ||
--target-host millau-node-alice \ | ||
--target-port 9944 \ | ||
--prometheus-host=0.0.0.0 |
2 changes: 2 additions & 0 deletions
2
deployments/bridges/rialto-parachain-millau/dashboard/prometheus/targets.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
- targets: | ||
- relay-millau-rialto-parachain-1:9616 | ||
- relay-millau-rialto-parachain-2:9616 | ||
- detect-millau-to-rialto-parachain-equivocations:9616 | ||
- detect-rialto-to-millau-equivocations:9616 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
...arachain-millau/entrypoints/detect-millau-to-rialto-parachain-equivocations-entrypoint.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
set -eu | ||
|
||
sleep 15 | ||
|
||
exec /home/user/substrate-relay detect-equivocations millau-to-rialto-parachain \ | ||
--source-host millau-node-alice \ | ||
--source-port 9944 \ | ||
--source-signer //RialtoParachain.HeadersAndMessagesRelay1 \ | ||
--source-transactions-mortality=64 \ | ||
--target-host rialto-parachain-collator-charlie \ | ||
--target-port 9944 \ | ||
--prometheus-host=0.0.0.0 |
13 changes: 13 additions & 0 deletions
13
...s/rialto-parachain-millau/entrypoints/detect-rialto-to-millau-equivocations-entrypoint.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
set -eu | ||
|
||
sleep 15 | ||
|
||
exec /home/user/substrate-relay detect-equivocations rialto-to-millau \ | ||
--source-host rialto-node-alice \ | ||
--source-port 9944 \ | ||
--source-signer //Millau.HeadersAndMessagesRelay \ | ||
--source-transactions-mortality=64 \ | ||
--target-host millau-node-alice \ | ||
--target-port 9944 \ | ||
--prometheus-host=0.0.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.