Branislav Kontur
7a5cfaeefc
Update docs ( #2242 )
2024-04-10 10:28:37 +02:00
Branislav Kontur
320aea743b
Nits for subtree ( #2241 )
...
* Updated version according to Cumulus
* Renaming
* Cargo.lock
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
504c6bd622
Ensure that the origin is signed for submit_parachain_heads and submit_finality_proof calls ( #2239 )
...
* ensure that the origin is signed for submit_parachain_heads and submit_finality_proof calls
* clippy
* clippy
2024-04-10 10:28:37 +02:00
Adrian Catangiu
cc1966ff43
minor doc fix ( #2207 )
2024-04-10 10:28:37 +02:00
Adrian Catangiu
ac725ec93f
backport cumulus changes to polkadot-staging ( #2167 )
...
* backport cumulus changes
* bump substrate & polkadot and make it build
* fix runtimes
* bump substrate, polkadot & cumulus
* fix build: remove ump leftovers
* fix tests: disable runtime version check in tests
* fix build: use sp_version::runtime_version macro
Signed-off-by: acatangiu <adrian@parity.io >
2024-04-10 10:28:37 +02:00
Branislav Kontur
b3d6fe7cba
Updated BHR/W version + codegen ( #2148 )
2024-04-10 10:28:37 +02:00
Adrian Catangiu
564cc5ead7
expose test utilities to be used in BH paras ( #2142 )
...
Signed-off-by: acatangiu <adrian@parity.io >
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
1e56593bf2
Ws-port argument has been repalced with rpc-port ( #2140 )
...
* ws-port argument has been repalced with rpc-port
* fixed paras pallet weight and expose unsigned validation
* add bootnodes to RialtoParachain collators
* another bump + increase block proposal time
* revert RUST_LOG=trace for test network nodes
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
9a8491dec8
fix nodes startup ( #2138 )
2024-04-10 10:28:37 +02:00
Branislav Kontur
4330d0491c
Bump polkadot/substrate ( #2134 )
...
* Bump polkadot/substrate
* Fix millau network service
* Fix polkadot_node_core_pvf_worker
* Fix sc-network
* Fix parachain rpc stuff
* Check `integrity-test` for `bridge-runtime-common`
* Backport fix from cumulus https://github.com/paritytech/cumulus/pull/2585/files#diff-5a942d80670b5ef31bb18b5acacab93ff30512d7cd21c19d7da364f76f6bb5c3 because of https://gitlab.parity.io/parity/mirrors/cumulus/-/jobs/2842938
* TODO
* Bump cumulus
2024-04-10 10:28:37 +02:00
Branislav Kontur
f25a5f0409
Support for kusama-polkadot relaying ( #2128 )
2024-04-10 10:28:37 +02:00
Serban Iorga
930e0e4932
Fix clippy warnings ( #2127 )
2024-04-10 10:28:37 +02:00
Branislav Kontur
7188765244
BHK/P alignments ( #2115 )
...
* Constants
* Unused import?
* Cargo.lock
* Unused deps
* TODO: fix doc or reimport?
* Try to aviod redefine para_id constant for `RefundableParachainId`
* Checked and removed TODOs
2024-04-10 10:28:37 +02:00
Serban Iorga
d479232c34
Small fixes ( #2126 )
2024-04-10 10:28:37 +02:00
Serban Iorga
d80d2a5039
Cosmetics ( #2124 )
...
* Cosmetics
* Address PR comment
2024-04-10 10:28:37 +02:00
Serban Iorga
06e0204694
Remove some expect() statements ( #2123 )
...
* Return error on save_message()
Prevent unexpected failures.
* Remove RefCell
* Fix spellcheck
* CI fixes
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
eec97df358
temporarily remove balance guard ( #2121 )
2024-04-10 10:28:37 +02:00
Serban Iorga
201dfddc54
Propagate message receival confirmation errors ( #2116 )
...
* Propagate message receival confirmation errors
* spellcheck
2024-04-10 10:28:37 +02:00
Serban Iorga
56d4013878
Propagate message verification errors ( #2114 )
...
* Propagate message verification errors
* Replace parse_finalized_storage_proof() with storage_proof_checker()
* small fixes
* fix comment
2024-04-10 10:28:37 +02:00
dependabot[bot]
c490222fc6
Bump clap from 4.2.5 to 4.2.7
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.2.5 to 4.2.7.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v4.2.5...v4.2.7 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-04-10 10:28:37 +02:00
dependabot[bot]
6a311e1419
Bump sysinfo from 0.28.4 to 0.29.0
...
Bumps [sysinfo](https://github.com/GuillaumeGomez/sysinfo ) from 0.28.4 to 0.29.0.
- [Changelog](https://github.com/GuillaumeGomez/sysinfo/blob/master/CHANGELOG.md )
- [Commits](https://github.com/GuillaumeGomez/sysinfo/commits )
---
updated-dependencies:
- dependency-name: sysinfo
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-04-10 10:28:37 +02:00
Branislav Kontur
d9757f09c1
Add MessagesPalletInstance for integrity tests ( #2107 )
2024-04-10 10:28:37 +02:00
Serban Iorga
9dfa496d15
Use generated runtimes for BHR/BHW ( #2106 )
...
* Use generated runtimes for BHR/BHW
* Deduplicate BHR/BHW runtimes
* Add script for regenerating runtimes
2024-04-10 10:28:37 +02:00
Serban Iorga
a2b017594f
Fix comment ( #2105 )
2024-04-10 10:28:37 +02:00
Serban Iorga
de918f8f3c
Fix sized messages (Follow-up on #2064 ) ( #2103 )
...
* Use wasm execution on millau and rialto
It's safer like this since here are some errors that aren't caught when
using native execution
* Revert "Revert "Fix max-size messages at test chains (#2064 )" (#2077 )"
This reverts commit 62f749e124fbcf074cdc9840690bb9049d4b3b99.
* Adjustments
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
49d11e9ce5
Add weight of refund extension post_dispatch to the weights of messages pallet ( #2089 )
...
* add weight of refund extension post_dispatch to the weights of messages pallet
* fixed tests and removed TODO
* verify runtime overhead weight in integrity tests
* add integrity tests to rialto-parachain runtime
* refactor weights a bit
* refund ext is disabled for Rialto <> Millau bridge
* Update bin/runtime-common/src/integrity.rs
Co-authored-by: Adrian Catangiu <adrian@parity.io >
* Update bin/runtime-common/src/integrity.rs
Co-authored-by: Adrian Catangiu <adrian@parity.io >
* Update modules/relayers/src/weights_ext.rs
Co-authored-by: Adrian Catangiu <adrian@parity.io >
---------
Co-authored-by: Adrian Catangiu <adrian@parity.io >
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
b03c584e31
Add millau specific messages weights ( #2097 )
...
* refactor weights a bit
* post cherry-pick fixes
* do not run spellcheck on new weight files
* fix
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
77b2ef5f6e
Add integrity tests to rialto parachain runtiime ( #2096 )
...
* add integrity tests to rialto-parachain runtime
* post cherry-pick fixes
2024-04-10 10:28:37 +02:00
dependabot[bot]
e08efd9104
Bump tokio from 1.27.0 to 1.28.0
...
Bumps [tokio](https://github.com/tokio-rs/tokio ) from 1.27.0 to 1.28.0.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.27.0...tokio-1.28.0 )
---
updated-dependencies:
- dependency-name: tokio
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-04-10 10:28:37 +02:00
dependabot[bot]
0d087463c2
Bump clap from 4.2.4 to 4.2.5
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.2.4 to 4.2.5.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v4.2.4...v4.2.5 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-04-10 10:28:37 +02:00
dependabot[bot]
cffc8e3a7b
Bump scale-info from 2.5.0 to 2.6.0
...
Bumps [scale-info](https://github.com/paritytech/scale-info ) from 2.5.0 to 2.6.0.
- [Release notes](https://github.com/paritytech/scale-info/releases )
- [Changelog](https://github.com/paritytech/scale-info/blob/master/CHANGELOG.md )
- [Commits](https://github.com/paritytech/scale-info/commits )
---
updated-dependencies:
- dependency-name: scale-info
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
c17f625770
Add more logs to relayer and message pallets ( #2082 )
...
* add more logs
* unused import
* fmt
2024-04-10 10:28:37 +02:00
bear
b495f8b28d
Update comment ( #2081 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
1f738f1389
Benchmarks for new relayers pallet calls ( #2040 )
...
* slash relayer balance for invalid transactions
* require some gap before unstake is possible
* more clippy
* log priority boost
* add issue ref to TODO
* fix typo
* is_message_delivery_call -> is_receive_messages_proof_call
* moved is_receive_messages_proof_call above
* only slash relayers for priority transactions
* benchmarks for new relayers pallet calls
* generated weights
* regenerated weights afer master merge
* actually use weights
2024-04-10 10:28:37 +02:00
Branislav Kontur
f7cc060d9b
Nits ( #2083 )
2024-04-10 10:28:37 +02:00
Branislav Kontur
db53d68e9b
Removed relayer_account: &AccountId from MessageDispatch ( #2080 )
...
* SourceBridgeHubChain/TargetBridgeHubChain replaced with RelayerAccountChain
* Fix
* Removed `relayer_account: &AccountId` from `MessageDispatch`
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
1f8b4d989e
Revert "Fix max-size messages at test chains ( #2064 )" ( #2077 )
...
This reverts commit f904623c65fbad542a878133c612b1f8782f47d1.
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
dc61bcdc01
Fixed off-by-one when confirming rewards in messages pallet ( #2075 )
...
* fixed off-by-one when confirming rewards in messages pallet
* Update modules/messages/src/inbound_lane.rs
2024-04-10 10:28:37 +02:00
Serban Iorga
97ef70c67a
Update subxt dependencies ( #2072 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
65b2196c6b
Fix max-size messages at test chains ( #2064 )
...
* fix max-size messages submit for test chains
* impl review suggestions
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
47addd738b
Messages relay fixes ( #2073 )
...
* removed obsolete check that is superseded by the unblock checks below
* if messages race transaction submit has failed, do not restart loop. Instead, wait for new best nonces from target node and retry selection. That's because submit has probably failed because other relayer has submitted same nonces
* reset nonces_to_submit and nonces_submitted if at least one of selected/submitted nonces is already at target
* removed extra check
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
53e1b7e264
Slash relayers for invalid transactions ( #2025 )
...
* slash relayer balance for invalid transactions
* require some gap before unstake is possible
* more clippy
* log priority boost
* add issue ref to TODO
* fix typo
* is_message_delivery_call -> is_receive_messages_proof_call
* moved is_receive_messages_proof_call above
* only slash relayers for priority transactions
* Update primitives/relayers/src/registration.rs
Co-authored-by: Adrian Catangiu <adrian@parity.io >
* Update primitives/relayers/src/registration.rs
Co-authored-by: Adrian Catangiu <adrian@parity.io >
* Update bin/runtime-common/src/refund_relayer_extension.rs
Co-authored-by: Adrian Catangiu <adrian@parity.io >
* Update bin/runtime-common/src/refund_relayer_extension.rs
Co-authored-by: Adrian Catangiu <adrian@parity.io >
* Update bin/runtime-common/src/refund_relayer_extension.rs
Co-authored-by: Adrian Catangiu <adrian@parity.io >
* Update modules/relayers/src/lib.rs
Co-authored-by: Adrian Catangiu <adrian@parity.io >
* Update primitives/relayers/src/registration.rs
Co-authored-by: Adrian Catangiu <adrian@parity.io >
* benificiary -> beneficiary
---------
Co-authored-by: Adrian Catangiu <adrian@parity.io >
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
3b47f957db
fix the way latest_confirmed_nonce_at_source is "calculated" ( #2067 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
26a1508591
select nothing if we have already selected nonces to submit or have submitted something ( #2065 )
2024-04-10 10:28:37 +02:00
Serban Iorga
70cf01d47a
[relay-substrate-client] Bump jsonrpsee ( #2066 )
2024-04-10 10:28:37 +02:00
dependabot[bot]
6acd45804d
Bump clap from 4.2.2 to 4.2.4
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.2.2 to 4.2.4.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v4.2.2...v4.2.4 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-04-10 10:28:37 +02:00
Serban Iorga
d7c5de1cc2
Another use of RangeInclusiveExt::checked_len() ( #2060 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
8b262ea60b
submit lane unblock transactions from relay ( #2030 )
...
* submit lane unblock transactions from relay
* moved body of select_nonces_to_deliver to the separate select_race_action
* extracted latest_confirmed_nonce_at_source method
* return Option<RaceAction> from select_race_action
* make required_source_header_at_target async
* remove extra argument from required_source_header_at_target
* small fixes in tests
* Revert "return Option<RaceAction> from select_race_action"
This reverts commit 9f13dbfae39a5a45564550e8c89b10a524a68729.
* implement required_source_header_at_target using what-if approach
* fix compilation
* fmt
* clippy
* moved some code to the can_submit_transaction_with
2024-04-10 10:28:37 +02:00
Serban Iorga
25220c2ca4
Test deployments fixes ( #2057 )
...
* Fix node_impl_version error
```
error: unexpected argument '--node-impl-version' found
tip: to pass '--node-impl-version' as a value, use '-- --node-impl-version'
Usage: rialto-bridge-node prepare-worker <SOCKET_PATH> <NODE_IMPL_VERSION>
For more information, try '--help'.
```
* Fix rialto-parachain not producing blocks
We must have at least 2 validators for each collator
2024-04-10 10:28:37 +02:00
Serban Iorga
13ecaf1eca
Small simplifications ( #2050 )
2024-04-10 10:28:37 +02:00