-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat/lp v2 gateway multi router (#1961)
* wip * lp-gateway: Add router hash for inbound messages, extrinsic to set inbound routers, session ID storage * lp-gateway: Add router hash for inbound messages, extrinsic to set inbound routers, session ID storage * lp-gateway: Use router hashes for inbound, use session ID, update inbound message processing logic * lp-gateway: Add and use InboundProcessingInfo * lp-gateway: Unit tests WIP * lp-gateway: Unit tests WIP 2 * docs: Improve comments * lp-gateway: Move message processing logic to a new file * lp-gateway: Merge inbound/outbound routers extrinsics into one, add logic for removing invalid session IDs on idle * lp-gateway: Unit tests WIP * lp-gateway: Add extrinsic for executing message recovery * rebase: WIP * Don't use domain when storing routers (#1962) * lp-gateway: Unit tests WIP * lp-gateway: Don't store routers under domain * wip * wip * lp-gateway: Unit test WIP * lp-gateway: Rename RouterSupport to RouterProvider, add separate entity that implements it * lp-gateway: Add more asserts in unit tests * lp-gateway: Attempt to execute message during recovery * lp-gateway: Remove extra constraints from SessionId * lp-gateway: Drop session ID invalidation (#1965) * lp-gateway: Drop session ID invalidation * lp-gateway: Add test for invalid router * lp-gateway: Add more unit tests * lp-gateway: Move InboundEntry logic to implementation * lp-gateway: Use safe math * lp-gateway: Add more unit tests * checks: Fix clippy, taplo, formatting * review: Remove mock-builder dep, rename LP encoding proof methods * lp-gateway: Remove Default impls for RouterId and GatewayMessage * lp-gateway: Allow empty list of routers * lp-gateway: Drop InboundProcessingInfo * lp-gateway: Rename LP encoding methods to get_proof and to_proof_message * lp-gateway: Move outbound processing logic back to pallet * review: Small fixes * lp-gateway: Add comment for post voting dispatch error case * lp-gatway: Drop session ID check in create_post_voting_entry * lp: Remove unused import * integration-tests: Register routers during setup (#1968) * integration-tests: Set routers in all setup funcs and tests
- Loading branch information
Showing
30 changed files
with
4,817 additions
and
805 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.