Skip to content
Commit ba61b268 authored by Svyatoslav Nikolsky's avatar Svyatoslav Nikolsky Committed by Serban Iorga
Browse files

Reward relayers for dispatching messages (#385)



* reward relayers for dispatching messages

* clippy

* Update modules/message-lane/src/lib.rs

Co-authored-by: default avatarHernando Castano <[email protected]>

* added comment

* Update modules/message-lane/src/inbound_lane.rs

Co-authored-by: default avatarTomasz Drwięga <[email protected]>

* Update modules/message-lane/src/inbound_lane.rs

Co-authored-by: default avatarTomasz Drwięga <[email protected]>

* SubmitterId + RelayerId -> AccountId

* add confirmation_relayer arg to pay_relayer_reward

* cargo fmt --all

* removed verify_and_decode_messages_proof from SourceHeaderChain

* &mut self -> RefCell

* Optimize max messages at inbound lane (#418)

* Add tests for checking messages above max limit

Signed-off-by: default avatarMaciejBaj <[email protected]>

* Extend the relayers entry of inbound lane by additional msg nonce

Signed-off-by: default avatarMaciejBaj <[email protected]>

* Support additional message nonce from inbound relayers

Signed-off-by: default avatarMaciejBaj <[email protected]>

* Code format

Signed-off-by: default avatarMaciejBaj <[email protected]>

* Merge messages range for highest relayers

* Change unwrap() to ensure() while accessing relayers

* Edit rustdocs for relayers deque at inbound lane data

Co-authored-by: default avatarHernando Castano <[email protected]>

* Declare additional relayers A & B and use across tests consistently

Signed-off-by: default avatarMaciejBaj <[email protected]>

* Remove duplicates and improve naming for inbound lane tests

* Fix test checking max limit per inbound lane

* Correct relayers rewards loop after a proof is received

* Remove redundant check for messages ahead of received range

* Correct grammar at inbound lane tests rustdocs

Co-authored-by: default avatarHernando Castano <[email protected]>

* Improve code quality of relayers updates 💅



Co-authored-by: default avatarTomasz Drwięga <[email protected]>

* Test dispatches above max limit from same relayer

Co-authored-by: default avatarHernando Castano <[email protected]>
Co-authored-by: default avatarTomasz Drwięga <[email protected]>

* Fix typo.

Co-authored-by: default avatarHernando Castano <[email protected]>
Co-authored-by: default avatarTomasz Drwięga <[email protected]>
Co-authored-by: default avatarMaciej Baj <[email protected]>
Co-authored-by: default avatarTomasz Drwięga <[email protected]>
parent 315cb9f6
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment