-
Notifications
You must be signed in to change notification settings - Fork 446
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add ism limit #5567
base: main
Are you sure you want to change the base?
feat: add ism limit #5567
Conversation
|
8afd307
to
2c518e6
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5567 +/- ##
=======================================
Coverage 77.53% 77.53%
=======================================
Files 103 103
Lines 2110 2110
Branches 190 190
=======================================
Hits 1636 1636
Misses 453 453
Partials 21 21
🚀 New features to boost your workflow:
|
2c518e6
to
01b5be5
Compare
01b5be5
to
09a7b6f
Compare
Co-authored-by: Danil Nemirovsky <[email protected]>
Co-authored-by: Danil Nemirovsky <[email protected]>
Co-authored-by: Danil Nemirovsky <[email protected]>
…-monorepo into jeff/ism-limit-2
c40692e
to
5659324
Compare
5659324
to
e69213b
Compare
20d5bb0
to
0fbc467
Compare
Description
Add an total ISM limit. This works in addition to the ISM max depth.
If either is reached, we won't build the metadata and drop the message.
Metadata
withMetadataBuildError
Result<Vec<u8>, MetadataBuildError>
but would require a lot of code changesmoved previous recursive logic into function:
build_message_metadata
created a new trait
BaseMetadataBuilderTrait
forBaseMetadataBuilder
Add
MockBaseMetadataBuilder
,MockInterchainSecurityModule
,MockRoutingIsm
Drive-by changes
Related issues
https://github.com/hyperlane-xyz/issues/issues/1424
Backward compatibility
Testing
Unit tests