Skip to content
  1. May 11, 2023
  2. Apr 25, 2023
    • Svyatoslav Nikolsky's avatar
      Messages relay fixes (#2073) · 3a658e36
      Svyatoslav Nikolsky authored
      * 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
      3a658e36
  3. Apr 24, 2023
  4. Apr 21, 2023
    • Svyatoslav Nikolsky's avatar
      submit lane unblock transactions from relay (#2030) · 4942c12a
      Svyatoslav Nikolsky authored
      * 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 9f13dbfa.
      
      * implement required_source_header_at_target using what-if approach
      
      * fix compilation
      
      * fmt
      
      * clippy
      
      * moved some code to the can_submit_transaction_with
      4942c12a
  5. Mar 14, 2023
  6. Mar 07, 2023
  7. Mar 02, 2023
  8. Feb 24, 2023
  9. Feb 14, 2023
  10. Jan 10, 2023
  11. Dec 27, 2022
    • Serban Iorga's avatar
      Replace `BATCH_CALL_SUPPORTED` (#1733) · b9050e90
      Serban Iorga authored
      * Simplify submit_and_watch_signed_extrinsic
      
      The way submit_and_watch_signed_extrinsic is used now, we can always
      derive the SignParam from other params. If in the future we need more
      customization possibilities, we can define a new method.
      
      * Simplify submit_signed_extrinsic
      
      * Send maybe_batch_tx as a parameter
      
      Send `maybe_batch_tx` as a parameter to `submit_proof()`. This way we
      can deduplicate the logic that submits the extrinsic for
      `messages_source and `messages_target` and we can simplify the logic in
      the race loop a bit.
      
      * Define BatchProofTransaction
      
      Deduplicate BatchConfirmationTransaction and BatchDeliveryTransaction by
      replacing both of them with BatchProofTransaction
      
      * Define ChainWithUtilityPallet and BatchCallBuilderConstructor
      
      - Define `ChainWithUtilityPallet` in order to be able to associate the
        batching functionality with chains
      - Defining `BatchCallBuilderConstructor` in order to have a more reliable
        way of checking whether an end of a messages pipeline supports batching
        or no. `BatchCallBuilderConstructor::new_builder()` returns an
        `Option<BatchCallBuilder>`.This is a bit safer because each time a caller
        tries to start creating a batch call, it will call `new_builder()` and
        will be required to handle the returned `Option`. Before we only had a
        bool `BATCH_CALL_SUPPORTED` the caller could have forgetten to check.
      b9050e90
  12. Dec 21, 2022
  13. Dec 16, 2022
    • Svyatoslav Nikolsky's avatar
      Batch transactions in complex relays (#1669) · 15244e53
      Svyatoslav Nikolsky authored
      * batch transactions in message relay: API prototype
      
      * get rid of Box<dyn BatchTransaction> and actually submit it
      
      * test batch transactions
      
      * message_lane_loop_works_with_batch_transactions
      
      * removed logger
      
      * BatchConfirmationTransaction + BatchDeliveryTransaction
      
      * more prototyping
      
      * fmt
      
      * continue with batch calls
      
      * impl BatchCallBuilder for ()
      
      * BatchDeliveryTransaction impl
      
      * BundledBatchCallBuilder
      
      * proper impl of BundledBatchCallBuilder + use it in RialtoParachain -> Millau
      
      * impl prove_header in OnDemandHeadersRelay
      
      * impl OnDemandParachainsRelay::prove_header (needs extensive tests)
      
      * added a couple of TODOs
      
      * return Result<Option<BatchTx>> when asking for more headers
      
      * prove headers when reauire_* is called && return proper headers from required_header_id
      
      * split parachains::prove_header and test select_headers_to_prove
      
      * more traces and leave TODOs
      
      * use finality stream in SubstrateFinalitySource::prove_block_finality
      
      * prove parachain head at block, selected by headers relay
      
      * const ANCIENT_BLOCK_THRESHOLD
      
      * TODO -> proof
      
      * clippy and spelling
      
      * BatchCallBuilder::build_batch_call() returns Result
      
      * read first proof from two streams
      
      * FailedToFindFinalityProof -> FinalityProofNotFound
      
      * changed select_headers_to_prove to version from PR review
      15244e53
  14. Nov 18, 2022
    • Svyatoslav Nikolsky's avatar
      Remove message fee + message send calls (#1642) · 7b24cd3a
      Svyatoslav Nikolsky authored
      * remove message fee
      
      * it is compiling!
      
      * fixes + fmt
      
      * more cleanup
      
      * more cleanup
      
      * restore MessageDeliveryAndDispatchPayment since we'll need relayer rewards
      
      * started rational relayer removal
      
      * more removal
      
      * removed estimate fee subcommand
      
      * remove DispatchFeePayment
      
      * more removals
      
      * removed conversion rates && some metrics
      
      * - unneeded associated type
      
      * - OutboundMessageFee
      
      * fix benchmarks compilation
      
      * fmt
      
      * test + fix benchmarks
      
      * fix send message
      
      * clippy
      7b24cd3a
  15. Oct 21, 2022
  16. Oct 20, 2022
    • Svyatoslav Nikolsky's avatar
      Bump Substrate/Polkadot/Cumulus refs (aka Weights v1.5) (#1597) · 789f185c
      Svyatoslav Nikolsky authored
      * update Substrate + Polkadot + Cumulus refs
      
      * Origin -> RuntimeOrigin
      
      * weights v1.5
      
      * update refs once again + `cargo test -p pallet-bridge-grandpa` works
      
      * started work on `cargo test -p pallet-bridge-messages`
      
      * cargo test -p pallet-bridge-relayers
      
      * cargo test -p pallet-bridge-parachains
      
      * cargo test -p millau-runtime
      
      * cargo test -p bridge-runtime-common
      
      * cargo test -p rialto-runtime
      
      * cargo test -p rialto-parachain-runtime
      
      * cargo test -p millau-bridge-node
      
      * cargo test -p rialto-bridge-node
      
      * cargo test -p rialto-parachain-collator
      
      * cargo test -p messages-relay
      
      * cargo test -p parachains-relay
      
      * cargo test -p substrate-relay
      
      * cargo test --all
      
      * cargo check -p millau-runtime --locked --features runtime-benchmarks
      
      * fix remaining test
      
      * fmt
      
      * try to allow clippy failure temporarily
      
      * Revert "try to allow clippy failure temporarily"
      
      This reverts commit d1b65935.
      
      * use min_by
      
      * Revert "use min_by"
      
      This reverts commit 33042f49.
      
      * Revert "Revert "use min_by""
      
      This reverts commit 1d2204f0.
      
      * trigger CI
      
      * Revert "trigger CI"
      
      This reverts commit 259d91b5.
      
      * new day, new clippy warning
      
      * more clippy issues
      789f185c
  17. Sep 23, 2022
  18. Aug 05, 2022
    • Svyatoslav Nikolsky's avatar
      Unprofitable message delivery tx metric (#1536) · 9bae4a95
      Svyatoslav Nikolsky authored
      * unprofitable message delivery tx metric
      
      * proper impl
      
      * send Rialto -> Millau messages using XCM pallet
      
      * use altruistic relays in Rialto <> Millau bridge
      
      * add unprofitable transactions dashboard
      
      * fix + logging
      
      * fix test
      9bae4a95
  19. Jun 09, 2022
  20. Nov 30, 2021
  21. Nov 09, 2021
    • fewensa's avatar
      Custom relay strategy (#1198) · 9babb198
      fewensa authored
      * Add relayer strategy
      
      * Add default relayer strategy
      
      * default relayer strategy
      
      * expose relayer strategy
      
      * fix compile
      
      * fix compile
      
      * docs
      
      * Rename Relayer to Relay, keep RelayerDecide
      
      * split `DefaultRelayerStrategy` into `AltruisticRelayerStrategy` and `RationalRelayerStrategy`
      
      * Remove relayer mode
      
      * Remove unused import
      
      * Rename `RelayerStrategy` to `RelayStrategy`
      
      * Add missing docs
      
      * clippy
      
      * clippy
      
      * clippy
      
      * clippy
      
      * Revert `relayer_mode` and add `MixStrategy`
      
      * Add `EnforcementStrategy`
      
      * fix bug and simplify relay strategy
      
      * Update message_lane_loop.rs
      
      * Update messages_target.rs
      
      * clippy
      
      * clippy
      
      * clippy
      
      * clippy
      
      * clippy
      
      * clippy
      
      * clippy
      
      * fix test
      
      * fix test
      
      * test
      
      test
      
      test
      
      fix test
      9babb198
  22. Oct 25, 2021
  23. Sep 24, 2021
  24. Sep 06, 2021
  25. Aug 01, 2021
    • Tomasz Waszczyk's avatar
      Fix full spellcheck (#1076) · 3fb97fa5
      Tomasz Waszczyk authored
      
      
      * fix(spellcheck): test of fixing
      
      * fix(hunspell): improved many typos etc.
      
      * fix(hunspell): all errors solved
      
      * fix(hunspell): extended scope of files - the build should fail
      
      * Return error code.
      
      * Fix spelling, sort dictionary.
      
      * fix(hunspell): added fix to gitlabs check
      
      * fix(typo): one typo and test of verification on github
      
      * fix(typo): one typo
      
      Co-authored-by: default avatarTomasz Drwięga <[email protected]>
      3fb97fa5
  26. Jul 06, 2021
  27. Jul 01, 2021
  28. Jun 24, 2021
  29. Jun 21, 2021
  30. Jun 16, 2021
  31. Apr 22, 2021
  32. Apr 14, 2021
  33. Apr 06, 2021
  34. Mar 26, 2021
  35. Mar 23, 2021
  36. Mar 22, 2021
  37. Mar 12, 2021
  38. Feb 15, 2021
  39. Feb 12, 2021