Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

When executeCommon fails it should fail the transaction instead of returning #9112

Closed
ishantiw opened this issue Oct 20, 2023 · 0 comments
Closed
Assignees
Milestone

Comments

@ishantiw
Copy link
Contributor

Expected behavior

According to LIP0053, if executeCommon fails then it should fail the CCU transaction

Actual behavior

if executeCommon fails then it doesn't fail the transaction but instead of that it returns without error.

Steps to reproduce

  • Send a CCU which fails at any step in executeCommon

Which version(s) does this affect? (Environment, OS, etc...)

6.0.0-rc.3

@ishantiw ishantiw self-assigned this Oct 20, 2023
ishantiw added a commit that referenced this issue Oct 20, 2023
- Create Panic function to exit application on unexpected error while CCU execution
- Add events to verifyPartnerChainOutboxRoot on smt and partnerOutbox failure #9111
- Rename executeCommon->beforeCrossChainMessagesExecution
- Add verifyRoutingRules similar to LIP0053
- Move verifyCertificateSignature and verifyPartnerChainOutboxRoot outside beforeCrossChainMessagesExecution and call before it #9112
- Move constant EVENT_TOPIC_CCM_EXECUTION to interoperability module
ishantiw added a commit that referenced this issue Oct 21, 2023
- Create Panic function to exit application on unexpected error while CCU execution
- Add events to verifyPartnerChainOutboxRoot on smt and partnerOutbox failure #9111
- Rename executeCommon->beforeCrossChainMessagesExecution
- Add verifyRoutingRules similar to LIP0053
- Move verifyCertificateSignature and verifyPartnerChainOutboxRoot outside beforeCrossChainMessagesExecution and call before it #9112
- Move constant EVENT_TOPIC_CCM_EXECUTION to interoperability module
ishantiw added a commit that referenced this issue Oct 22, 2023
* ♻️ Update getChildQueue to replace default topic
- getChildQueue is updated to replace default topic
- Transaction execution to have a transactionID with prefix as default topic
- CCM execution to have a ccmID with prefix as default topic

* ♻️ Add prefix to txID when call unsafeAdd

* ♻️ Handle ccm processing error #9100
- Create Panic function to exit application on unexpected error while CCU execution
- Add events to verifyPartnerChainOutboxRoot on smt and partnerOutbox failure #9111
- Rename executeCommon->beforeCrossChainMessagesExecution
- Add verifyRoutingRules similar to LIP0053
- Move verifyCertificateSignature and verifyPartnerChainOutboxRoot outside beforeCrossChainMessagesExecution and call before it #9112
- Move constant EVENT_TOPIC_CCM_EXECUTION to interoperability module

* ✅ Add and update tests for CCU execute and verifyPartnerChainOutboxRoot

* 💅🏻 Fix lint error

* 💅🏻 Apply feedback comments
@Madhulearn Madhulearn added this to the Sprint 106 milestone Oct 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants