Svyatoslav Nikolsky
41b65c28cf
Flag for rejecting all outbound messages ( #982 )
...
* flag for rejecting all outbound messages
* update weights
* Revert "update weights"
This reverts commit 992b866edc7c9fd97013cee9cd68b9d783f8681e.
* Revert "flag for rejecting all outbound messages"
This reverts commit d094964bb4f8800ab6978b9d4b12aade2f80d266.
* OperatingMode
* Update modules/messages/src/lib.rs
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
* Poke CI
* RustFmt
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
Co-authored-by: Hernando Castano <hernando@hcastano.com >
2024-04-10 10:28:37 +02:00
Denis Pisarev
0b7f40a371
Move CI from GitHub Actions to GitLab ( #814 )
...
* CI: do not trust this CI 1
* CI: don't want to trigger unneded statuses
* CI: debug 1
* CI: new CI
* CI: temp allow failure
* CI: exclude paths
* doc: check if docs won't trigger pipelines
* doc: check hybrid changes pipeline
* doc: do not push excluded files together with others
* CI: undebug fmt
* CI: better deny
* CI: fix deny and spellcheck
* CI: global backtrace
* CI: deny config
* CI: publishing
* Dockerfile: metadata fix [skip ci]
* CI: revert me
* CI: debug bash
* CI: mv ci.Dockerfile; fix buildah bug
* CI: fix artifact name
* Dockerfile: fix context
* CI: separate deny check licenses
* CI: when to run
* CI: unneded stuff in these Dockerfiles
* CI: merged test-refs and build-refs
* CI: test-build optimizations
* CI: changes, web, scheduled pipelines now work as intended
* CI: use tested production CI image
* CI: substitute GHA
* Fix clippy.
* Moar clippy fixes.
* Fix more.
* Finally fix all?
Co-authored-by: Tomasz Drwięga <tomasz@parity.io >
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
700d63672b
Custom justification verification ( #979 )
...
* custom justification verification
* is_ancestor -> ensure_descendant
* PrecommitIsNotCommitDescendant
* Update primitives/header-chain/src/justification.rs
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
6301ae0636
Always run on-demand headers relay in complex relay ( #975 )
...
* always run on-demand headers relay in complex relay
* fix compilation
2024-04-10 10:28:37 +02:00
Hernando Castano
cae105b55f
Bump Rococo/Wococo spec_version ( #976 )
2024-04-10 10:28:37 +02:00
Dan Shields
1f75777085
Revert to use InspectCmd, bump substrate 6bef4f4 ( #966 )
...
* revert to use InspectCmd
* rust toolchain 1.52
* Bump `finality-grandpa` and `parity-scale-codec`
* bump to same version for substrate as polkadot v0.9.1
* bump to polkadot 0.9.2 deps for substrate `6bef4f4`
Co-authored-by: Hernando Castano <hernando@hcastano.com >
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
b6efe6f740
Avoid hashing headers twice in verify_justification ( #973 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
f8f8f42a89
in auto-relays keep trying to connect to nodes until connection is established ( #971 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
ea82ad67cf
removed stray file ( #969 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
91c669ec78
Serve multiple lanes with single complex relay instance ( #964 )
...
* serve multiple lanes with single complex relay instance
* Update relays/bin-substrate/src/cli/relay_headers_and_messages.rs
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
* revert default value removal
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
2024-04-10 10:28:37 +02:00
fewensa
51bba378ca
Correct type error ( #968 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
bfaa6a4309
Start finality relay spec-version guards for Rococo <> Wococo finality relays ( #965 )
...
* start finality relay guards
* comment
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
ff7f8ad098
pass source and target chain ids to account_ownership_proof ( #963 )
2024-04-10 10:28:37 +02:00
Hernando Castano
20d94e093a
Upstream changes from Polkadot repo ( #961 )
...
* Bump Rococo's spec_version
* Use dev node for Rococo helper script
* Add helper scripts for relaying Rococo<>Wococo headers
* Change Wococo<>Rococo scripts to use Alice for initialization
* Add Wococo node helper script
2024-04-10 10:28:37 +02:00
Hernando Castano
d85cf36685
Increase account endowment amount ( #960 )
2024-04-10 10:28:37 +02:00
Hernando Castano
d53ecbdb3b
Bump Substrate to b094edaf ( #958 )
...
* Bump Substrate to commit `b094edafd1cd5d26e49ecbf92b0ce7553cfad717`
* Remove unsafe random seed method
See: https://github.com/paritytech/substrate/pull/8718
* Update Subkey syntax
See: https://github.com/paritytech/substrate/pull/8678
2024-04-10 10:28:37 +02:00
Hernando Castano
1a662c7bb3
Bump endowment amounts on Rialto and Millau ( #957 )
2024-04-10 10:28:37 +02:00
Hernando Castano
7ebae6fa9e
Bump Substrate WASM builder ( #947 )
2024-04-10 10:28:37 +02:00
Hernando Castano
92b1860f5a
Bump Substrate to ec180313 ( #955 )
...
* Bump Substrate to commit `0856e0729c5f9cd5d398b93680ab154fe486e588`
* Update service to use new inherent data client
Relevant Substrate PR: https://github.com/paritytech/substrate/pull/8526
* Appease Clippy
2024-04-10 10:28:37 +02:00
fewensa
4ccf7a2f5a
Move pallet-bridge-dispatch types to primitives ( #948 )
...
* message dispatch support multiple instances
* Move pallet-bridge-dispatch types to primitives
* remove pallet-bridge-dispatch dependency
* Update cargo.lock (remove pallet-bridge-dispatch in substrate-relay)
* remove extra dependencies
2024-04-10 10:28:37 +02:00
Tomasz Drwięga
d85240b539
Endow accounts and add bridgeIds to chainspec. ( #951 )
...
* Endow more accounts.
* Add bridge ids to properties.
* Change accounts on Millau.
2024-04-10 10:28:37 +02:00
Tomasz Drwięga
c8db52672f
Fix account derivation in CLI ( #952 )
...
* Fix account derivation.
* Fix tests.
2024-04-10 10:28:37 +02:00
Tomasz Waszczyk
051030374a
Add backbone configuration of cargo-spellcheck ( #924 )
...
* feat(config): add backbone configuration of cargo-spellcheck
* feat(config): try to narrow a source code to analysis
* feat(config): try to narrow a source code to analysis via find command
* Update .github/workflows/lint.yml
;-)
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
* Update .github/workflows/lint.yml
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
* Use bash.
* Fix spelling.
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
Co-authored-by: Tomasz Drwięga <tomasz@parity.io >
2024-04-10 10:28:37 +02:00
fewensa
01cede2120
Message dispatch support multiple instances ( #942 )
...
* message dispatch support multiple instances
* format code
* define millau grandpa instance in rialto
2024-04-10 10:28:37 +02:00
Hernando Castano
7dc564a067
Add Wococo<>Rococo Header Relayer ( #925 )
...
* Add Wococo primitives crate
* Add more Wococo boilerplate code
* Add CLI support for initializing the Wococo<>Rococo bridge
* Add support for relaying headers between Rococo and Wococo
* Fix test
* RustFmt
* Fix compilation issues related to enum naming
* Bump Rococo `spec_version`
* Remove stray Westend references
2024-04-10 10:28:37 +02:00
Hernando Castano
76625ed180
Remove Westend<>Rococo header sync ( #940 )
...
* Remove scripts for Westend<>Rococo header sync
* Remove Westend<>Rococo header sync code
* Remove Westend<>Rococo init bridge CLI option
* Modify Westend mock call to be placeholder
* Fix call encoding test
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
ebf9ae7546
do not panic if pallet is not yet initialized ( #937 )
2024-04-10 10:28:37 +02:00
Hernando Castano
982a50df66
Bump Substrate ( #939 )
...
* Bump Substrate to `0856e072`
* Fix compilation errors
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
4321d20d2f
jsonrpsee alpha6 ( #938 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
622a4b5c6f
reonnect to failed client in on-demand relay background task ( #936 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
38cd3a328d
Do not spawn additional task for on-demand relays ( #933 )
...
* do not spawn additional task for on-demand relays
* compilation
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
0e34a11309
Relay at least one header for every source chain session ( #923 )
...
* relay at least one header for every session
* Update relays/bin-substrate/src/on_demand_headers.rs
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
2024-04-10 10:28:37 +02:00
Hernando Castano
4916ec3432
Remove deprecated Runtime Header APIs ( #932 )
2024-04-10 10:28:37 +02:00
Nikos Kontakis
8028fe1632
Update README.md ( #931 )
2024-04-10 10:28:37 +02:00
Tomasz Drwięga
816fb36107
Truncate output in logs. ( #930 )
2024-04-10 10:28:37 +02:00
Tomasz Drwięga
7c2b54c5e7
Make sure that relayers have dates in logs. ( #927 )
2024-04-10 10:28:37 +02:00
Tomasz Drwięga
479e51c67b
Add pruning to bechmarks & update weights. ( #918 )
...
* Insert headers in benchmarks.
* Fix benchmarks.
* Lower number of headers.
* Avoid hardcoding numbers.
* Update weights.
* cargo fmt --all
* Remove todo.
* Fix test.
* Address review comments.
* Fix borrowed value.
2024-04-10 10:28:37 +02:00
Tomasz Drwięga
fd44cab992
Add properties to Chain Spec ( #917 )
...
* Add properties to chainspec.
* Update bin/millau/node/src/chain_spec.rs
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
978de95938
Fix issue with on-demand headers relay not starting ( #921 )
...
* require lane source -> target headers when weknow all headers that have produced messages, but are unable to deliver all messages because of unrewarded relayers vec capacity
* Update relays/messages/src/message_race_delivery.rs
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
63ce1b5973
Prefix in relay loops logs ( #920 )
...
* prefix in relay loops logs
* fmt
2024-04-10 10:28:37 +02:00
Hernando Castano
25a4151a8b
Prep for Westend to Rococo Header Sync ( #915 )
...
* Bump Rococo and Westend RuntimeVersions
* Add helper scripts for running Rococo<>Westend header sync
* Remove extra space
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
2024-04-10 10:28:37 +02:00
Niklas Adolfsson
f857771ce8
Update jsonrpsee to 0.2.0-alpha.5 ( #914 )
...
* update jsonrpsee to 0.2.0-alpha.5
* cargo fmt
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
5e26ba4999
(temporarily) Switch to jsonrpsee master ( #913 )
...
* (temporarily) switch to jsonrpsee master
* removed param used for tests
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
49e04b7b26
Update Kusama/Polkadot metrics ( #910 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
f6fd87f39e
fix polkadot primitives ( #908 )
2024-04-10 10:28:37 +02:00
Hernando Castano
b8e021c22c
Prettify test output when encoding doesn't match ( #907 )
2024-04-10 10:28:37 +02:00
Tomasz Drwięga
234e6b95e4
Update weights ( #898 )
...
* New weights.
* Fix test.
* cargo fmt --all
2024-04-10 10:28:37 +02:00
Tomasz Drwięga
e9b8827c83
CLI: naming clean-up. ( #897 )
...
* Small naming clean up.
* Small naming clean up.
* Add Rococo module to CLI
Co-authored-by: Svyatoslav Nikolsky <svyatonik@gmail.com >
Co-authored-by: Hernando Castano <hernando@hcastano.com >
2024-04-10 10:28:37 +02:00
Hernando Castano
bca83fd020
Westend<>Rococo Headers Relay ( #875 )
...
* Add modules for Rococo<>Westend header sync
* Use mock Westend and Rococo finaltiy tx calls
* Add Westend<>Rococo variants to `init_bridge`
* Add Westend<>Rococo variants to `relay_headers`
* Simplify the Rococo and Westend signing params
* Add `submit_finality_proof` mock Call variant
* Add note to more closely match `initialize` Call variant
* Accidentally committed `cargo-expand`ed code 🤦
* Add `initialize` Call variant to Rococo mock
* Fix call enums.
* Add explainatory comment.
* clippy.
* Add issue number.
* De-duplicate metrics customisation.
* Add comments to Rococo/Westend runtimes.
* Add scale-encoding compatibility test.
* Fix tests.
* Clippy.
Co-authored-by: Tomasz Drwięga <tomasz@parity.io >
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
a69026af44
Use complex headers+messages relay in test deployments ( #905 )
...
* use complex relay in deployments
* enable lane 00000001
* add alerts for lane 00000001
* revert local substrate relay
* updated doc
* review
2024-04-10 10:28:37 +02:00