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

Improve logging when a transaction fails due to verifyPartnerChainOutboxRoot #9111

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

Comments

@ishantiw
Copy link
Contributor

ishantiw commented Oct 20, 2023

Expected behavior

When a transaction execution fails in verifyPartnerChainOutboxRoot during CCU execution, it should log a proper message and log an event

Actual behavior

Currently when the command fails on verifyPartnerChainOutboxRoot there is no error message or event related to it.

Related LIP PR to fix it by,

  • Adding EVENT_NAME_INVALID_OUTBOX_ROOT_VERIFICATION event on verifyPartnerChainOutboxRoot failure as well as on SMT failure.
  • Apart from the above change, verifyPartnerChainOutboxRoot and verifyCertificateSignature are taken out from beforeCrossChainMessagesExecution so now transaction will fail if any of these 2 functions will fail.

Steps to reproduce

Submit a CCU with invalid PartnerChainOutboxRoot

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