Svyatoslav Nikolsky
69d41127bc
Fix Westend -> Millau sync ( #1064 )
...
* read justifications from stream using channel + task that fills that channel
* Arc<Mutex> -> Mutex
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
09d30894d1
When restarting client, also "restart" tokio runtime ( #1065 )
...
* remember new tokio runtime on reconnect
* compilation
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
63d6fc436a
use tokio reactor to execute jsonrpsee futures ( #1061 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
08fd53adef
Use BABE to author blocks on Rialto (previously: Aura) ( #1050 )
...
* use BABE to author blocks on Rialto (previously: Aura)
* removed extra script
* use bp_rialto::Moment
* fix tests
* Babe should control session end
* test
* Revert "test"
This reverts commit 4bbbd76b1fe0aa65002fcfa600cfdc6d15c899e2.
* clippy
* fix test
* Revert "Revert "test""
This reverts commit e9220184d4a14ef4f5a792b239e835528d3baa31.
* Revert "Revert "Revert "test"""
This reverts commit 9f56a5528945f1d8f82c6346826be68207bf9c75.
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
e18844d1f4
Allow reading suri && password override from file ( #1059 )
...
* allow reading suri && password override from file
* fix clippy
* Update relays/bin-substrate/src/cli/mod.rs
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
* Update relays/bin-substrate/src/cli/mod.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
6103fbe40b
Update jsonrpsee reference ( #1049 )
...
* update jsonrpsee
* test
* Revert "test"
This reverts commit 2b69652ab92ff0d9649088c76faed2c94384540d.
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
4e18bff37c
enable weight fee adjustent in Rialto/Millau ( #1044 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
88ee6bd6a0
Pay dispatch fee at target chain cli option ( #1043 )
...
* dispatch-fee-payment=at-target-chain cli option
* generate at-target-chain messages
* Update relays/bin-substrate/src/cli/send_message.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
f5f73537a8
bump dependencies before start referencing polkadot repo ( #1048 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
a428420866
Cli option for greedy relayer + run no-losses relayer by default ( #1042 )
...
* cli option for greedy relayer + run no-losses relayer by default
* trigger build
* Revert "trigger build"
This reverts commit f77ae3a634b909bb4dc915941a4c1011a86019f0.
* NoLosses -> Rational
2024-04-10 10:28:37 +02:00
Hernando Castano
754e5ad8c7
Yrong README Fixup + M1 Fixes ( #1045 )
...
* Fix build error in mac m1 silicon
* Improve readme
* Clean up local script instructions
* Add Docker Hub reference
* Slightly improve send a message wording
* Fix typo
Co-authored-by: ron.yang <yrong1997@gmail.com >
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
2e50bf8fb1
Confirm delivery detects when more than expected messages are confirmed ( #1039 )
...
* confirm delivery detects when more than expected messages are confirmed
* fix benchmarks compilation
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
dfdd541bc9
pre and post dispatch weights of OnDeliveryConfirmed callback ( #1040 )
...
* pre and post dispatch weights of OnDeliveryConfirmed callback
* Update modules/messages/README.md
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
* clippy + compilation
* fix test issue from parallel PR
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
166b5309e6
give real value to Rialto and Millau tokens ( #1038 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
fd39d3519e
Use real conversion rate in greedy relayer strategy ( #1035 )
...
* use real conversion rate in greedy relayer strategy
* only accept positive, normal numbers in FloatJsonValueMetric
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
084c2e6c64
fixed metrics prefix ( #1037 )
2024-04-10 10:28:37 +02:00
halfpint104
84da766881
Use kebab-case for bridge arguments ( #1036 )
...
* Updates bridge CLI arguments to be kebab case
* Updates scripts to use kebab case for bridge initialisation and relaying of headers/messages
* Updates message sending subcommand to be kebab case
* Updates documentation for message sending subcommand
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
ecd20d9d24
Shared reference to conversion rate metric value ( #1034 )
...
* shared conversion rate metric value
* clippy
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
db0216dabb
estimate transaction fee ( #1015 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
165730a2c2
Rococo <> Wococo messages relay ( #1030 )
...
* MessagesInstance -> BridgedMessagesInstance
* Chain::ID -> Bridge::THIS_CHAIN_ID+Bridge::BRIDGED_CHAIN_ID
* FromBridgedChainEncodedMessageCall<B> -> FromBridgedChainEncodedMessageCall<DecodedCall>
* impl Parameter for ()
* copypaste storage_map_final_key to avoid different runtime references/dummy runtimes
* moved dummy runtime from primitives to relay client
* Rococo <> Wococo messages relays
* send R<>W messages using relay
* fmt
* return Result from get_dispatch_info
* fix benchmarks compilation
* clippy
2024-04-10 10:28:37 +02:00
Chevdor
c8aeb11b26
Update the wasm builder to substrate master ( #1029 )
...
* chore: update the wasm builder to substrate master
* Bump Substrate
* Update weight of sending remarks
ref https://github.com/paritytech/polkadot/pull/3354
Co-authored-by: Hernando Castano <hernando@hcastano.com >
2024-04-10 10:28:37 +02:00
kaichao
655901250d
Make target signer optional when sending message. ( #1018 )
...
* make target signer optional in send message.
* remove non-used argument
* fmt
* better doc
* trigger build
* fix clippy
2024-04-10 10:28:37 +02:00
kaichao
79e7845544
Fix insufficient balance when send message. ( #1020 )
...
* fix insufficient balance when send message.
* Revert "fix insufficient balance when send message."
This reverts commit b7a539c77b1eb0c6f7ccb1333e9fd2c4e18f8cbc.
* More derived account used for send messages.
* typo fix
* trigger build
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
3e103c16ce
greedy relayer don't need message dispatch to be prepaid if dispatch is supposed to be paid at the target chain ( #1016 )
2024-04-10 10:28:37 +02:00
kaichao
010588e95a
Allow Root to assume SourceAccount. ( #1011 )
...
* Allow Root to assume SourceAccount.
* fmt code
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
6ff79e9959
Return dispatch_fee_payment from message details RPC ( #1014 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
ee43a560f8
Relay basic single-bit message dispatch results back to the source chain ( #935 )
...
* relay dispatch result flags back to the source chain
* OnMessagesDelivered callback
* add lane id to OnDeliveredMessages callback
* fix benchmarks && upate weights
* clippy
* clippy
* clipy another try
* OnMessagesDelivered -> OnDeliveryConfirmed
* Update primitives/messages/src/source_chain.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
87c48f649b
Use plain source_queue view when selecting nonces for delivery ( #1010 )
...
* use plain source_queue view when selecting nonces for delivery
* Revert "use plain source_queue view when selecting nonces for delivery"
This reverts commit f1fdc3fa9a0934271b125328e69e4f16014780d1.
* Revert "Revert "use plain source_queue view when selecting nonces for delivery""
This reverts commit ccefa5ece24c675649251ebc5c686ef972eed2f4.
* clippy
* fmt
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
20b7f341e1
pay dispatch fee at target chain ( #911 )
...
* pay dispatch fee at target chain
* refund unspent dispatch weight to messages relayer
* test that transfer actually happens
* pay-at-target-cchain benchmarks + fix previous benchmarks (invalid signature)
* include/exclude pay-dispatch-fee weight from delivery_and_dispatch_fee/delivery tx cost
* remvoe some redundant traces
* enum DispatchFeePayment {}
* typo
* update docs
* (revert removal of valid check)
* Update modules/messages/src/benchmarking.rs
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
* Update modules/messages/src/benchmarking.rs
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
* Update modules/messages/src/benchmarking.rs
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
* Update modules/messages/src/benchmarking.rs
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
Co-authored-by: Tomasz Drwięga <tomasz@parity.io >
2024-04-10 10:28:37 +02:00
Hernando Castano
613803a15d
Bump Substrate to 286d7ce ( #1006 )
...
* Bump dependencies
- Substrate to `74a1bfdcc`
- `finality-grandpa` to `0.14.1`
- `fs-swap` to `0.2.6`
* Add `pallet_randomness_collective_flip` to runtimes
* Rename GenesisConfig fields
See Substrate PR: https://github.com/paritytech/substrate/pull/8990
* Missed PoA renames in Rialto GenesisConfig
* Use `spawn_essential_handle` for transaction pool
See Substrate PR: https://github.com/paritytech/substrate/pull/9074
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
c69c682a4c
Add --only-mandatory-headers mode ( #1004 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
09df16612b
Messages relayer operating mode ( #995 )
...
* introduce relayer mode enum
* removed MaximalReward mode
* TODO
* Saturating -> SaturatingAdd
* ref issue in TODOs
* Update relays/messages/src/message_race_delivery.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
f321b07606
Rococo <> Wococo relayer balance guard ( #998 )
...
* relayer balance guards in Rococo <> Wococo
* removed printlns
* update constant
* update constant
* start balance guard for Wococo -> Rococo
* Update relays/bin-substrate/src/chains/wococo_headers_to_rococo.rs
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
* Update relays/bin-substrate/src/chains/wococo_headers_to_rococo.rs
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
Co-authored-by: Tomasz Drwięga <tomasz@parity.io >
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
ec8412b6d0
rename messages_dispatch_weight -> message_details ( #996 )
...
Co-authored-by: Tomasz Drwięga <tomasz@parity.io >
2024-04-10 10:28:37 +02:00
Hernando Castano
954137eada
Bump Rococo and Wococo spec versions ( #999 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
4a47452c20
Move ChainWithBalances::NativeBalance -> Chain::Balance ( #990 )
...
* move ChainWithBalances::NativeBalance -> Chain::Balance
* dummy commit
* Revert "dummy commit"
This reverts commit c00642153d260685a91d4fffbc424d225741fceb.
2024-04-10 10:28:37 +02:00
Hernando Castano
b4939e2c9f
Fix some nits ( #988 )
...
* This is art, not bash
* Remove unused HEALTH build argument
Co-authored-by: Tomasz Drwięga <tomasz@parity.io >
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
0261d1e321
Fix clippy in test code ( #993 )
...
* fix clippy issues
* clippy + tests
* more clippy
Co-authored-by: adoerr <0xad@gmx.net >
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
812e782904
fix clippy issues ( #991 )
2024-04-10 10:28:37 +02:00
Roman Useinov
cab4c7cd05
Make sure GRANDPA shares state with RPC. ( #987 )
...
* Make sure GRANDPA shares state with RPC.
* RPC shared state with GRANDPA rialto.
* fmt
* cargo fix
* fix clippy
2024-04-10 10:28:37 +02:00
Hernando Castano
a6379d2968
Bump Substrate ( #986 )
...
* Bump Substrate to commit `0495ead4`
* Derive MaxEncodedLen for MillauHash
* Add new config params to Balances pallet
* Update Millau and Rialto service files
* Add new Config items to mock runtime
* Bump Substrate to `37bb3ae7`
* Update Aura worker params
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
37d067c0e0
Update submit finality proof weight formula ( #981 )
...
* updated weight formula for submit_finality_proof
* remove common prefix traces
* update docs
* single benchmark
* Re-generate weights.
* Update delivery transaction limits
Co-authored-by: Tomasz Drwięga <tomasz@parity.io >
Co-authored-by: Hernando Castano <hernando@hcastano.com >
2024-04-10 10:28:37 +02:00
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