Svyatoslav Nikolsky
043a008723
add relayers_state param to the receive_messages_delivery_proof ( #584 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
8a5b51a944
Limit size of message delivery transaction ( #575 )
...
* limit messages size in delivery transaction
* docs
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
2944f997d1
Limit max number of unconfirmed messages at inbound lane ( #545 )
...
* limit maximal number of unconfirmed messages at inbound lane
* unrewarded_relayer_entries API
* change relay to support max unrewarded relayer entries
* Update modules/message-lane/src/inbound_lane.rs
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
* Update relays/messages-relay/src/message_lane_loop.rs
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
* removed pub
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
f1949c6342
Limit max number of messages in delivery transaction ( #541 )
...
* limit max number of messages in delivery tx
* support max-messages-in-delivery-tx in relayer
* clippy
* clippy
* Update modules/message-lane/src/lib.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
4f661d2fe0
Message relay fixes for nightly stuck ( #532 )
...
* fixed missing else
* really wake up when retry timeout is completed
* do not query weights if target nonce is unknown
* fix compilation
2024-04-10 10:28:37 +02:00
dependabot-preview[bot]
be56ee51d0
Bump futures from 0.3.7 to 0.3.8 ( #507 )
...
* Bump futures from 0.3.7 to 0.3.8
Bumps [futures](https://github.com/rust-lang/futures-rs ) from 0.3.7 to 0.3.8.
- [Release notes](https://github.com/rust-lang/futures-rs/releases )
- [Changelog](https://github.com/rust-lang/futures-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/futures-rs/compare/0.3.7...0.3.8 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
* Fix clippy.
* Fix more clippy.
* Fix clippy again?
* Cliipy yet again.
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Tomasz Drwięga <tomasz@parity.io >
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
a0261757f9
Millau -> Rialto messages relay dashboard ( #520 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
d2ab81340a
Use best block state to craft message relay transactions ( #499 )
...
* use best block state to craft message relay transactions
* removed obsolete TODO
* Update relays/messages-relay/src/message_race_loop.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
6dc267393a
Use different chain primitives in Millau ( #517 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
23f5f3cdd6
Limit messages weight in batch ( #496 )
...
* limit messages in the batch by weight/count
* fixed components compilation
* reverted obsolete parts of #469
* implement generated_messages_weights
* actually use computed weight in message proof
* fmt and clippy
* fixed TODO
* clippy
* Update relays/messages-relay/src/message_race_loop.rs
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
* add issue reference
* add assert message
* grumbles
* fmt
* reexport weight from bp-message-lane
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
Co-authored-by: Hernando Castano <castano.ha@gmail.com >
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
74a2359c04
Print progress of message races ( #489 )
...
* print message race progress
* fmt
* Update relays/messages-relay/src/message_race_loop.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
739fb655a8
Fixed block where proof is generated ( #488 )
...
* fixed block where proof is generated
* proof_is_generated_at_best_block_known_to_target_node
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
d4fc7bebdc
Millau -> Rialto messages relay ( #399 )
...
* Millau messages -> Rialto relay
* prepare for custom race strategy of delivery race
* custom strategy for delivery race
* update TODOs
* add reference to issue 457
* impl reconnect
* clippy
* fix check in test
* fmt
* removed obsolete TODO
* fixed another TODOs
* fmt
* use MAX_UNCONFIRMED_MESSAGES_AT_INBOUND_LANE const from primitives
* Update relays/messages-relay/src/message_lane_loop.rs
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
* added SubstrateMessagesProof typedef
* fix test
* removed comment
* additional_proof_required -> ProofParameters
* typo
* multiline literal
* clippy
* fix typo
* and_then -> await
* update_source_latest_confirmed_nonce
* Update relays/messages-relay/src/message_race_delivery.rs
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
Co-authored-by: Hernando Castano <HCastano@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
cfe1e43473
Message lane loop metrics ( #400 )
...
* message lane metrics
* fmt and clippy
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
f43e405b5e
update async-std ( #388 )
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
3cd8937b38
Fees, weights, message delivery and dispatch ( #339 )
...
* introduce BridgedHeaderChain trait
* LaneMessageVerifier + tests
* fixed tests
* do not expose intenal functions
* cargo fmt --all + fix no_std compilation
* ByWeightDispatcher
* process queued messages from message-lane::on_initialize
* scheduled_messages_are_processed_from_on_initialize
* flush
* deal with fees + weights
* drop heavy messages on dispatch
* cargo fmt
* clippy
* fix comment
* Update primitives/message-lane/src/source_chain.rs
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
* removed messages_processed
* Update primitives/message-lane/src/source_chain.rs
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
* Update modules/message-lane/src/lib.rs
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
* remove queueing from message-lane
* also remove queueing from RPCs
* remove by-weight traces
* dispatch fee
* receiving -> delivery
* receival -> delivery
* remove extra line
* Update primitives/message-lane/src/source_chain.rs
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
* cargo fmt --all
* clippy
* let dispatch_weight to be larger than actual_dispatch_weight
* post-merge fix
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
2024-04-10 10:28:37 +02:00
Svyatoslav Nikolsky
d614cdaba8
Extract (headers, exchange, messages) relay loops into separate crates ( #357 )
...
* extracted relay crates
* moved metrics to utils
* exchange-relay compilation
* fix compilation of headers-relay
* fixed messages-relay compilation
* fixed ethereum-poa-relay compilation
* cargo lock
* cargo fmt --all
* clippy
* cargo fmt --all
* fix tests compilation
* clippy
* eof
* module level docs
* removed obsolete comment
* #![warn(missing_docs)]
* .0 -> Deref
* post-merge fix
* cargo fmt
* Update relays/headers-relay/src/headers.rs
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
* Update relays/headers-relay/src/headers.rs
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
* Update relays/headers-relay/src/lib.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