Skip to content
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

[R4R] - {0.4.2}: fix sigma MNT-26 #1132

Merged
merged 2 commits into from
Jun 27, 2023
Merged

[R4R] - {0.4.2}: fix sigma MNT-26 #1132

merged 2 commits into from
Jun 27, 2023

Conversation

Sha3nS
Copy link
Collaborator

@Sha3nS Sha3nS commented Jun 27, 2023

Goals of PR

Core changes:
fix sigma audit MNT-26

Notes:
no

Related Issues:
TBD

@@ -148,6 +148,10 @@ func (s *DaService) GetDtlBatchTransactionByDataStoreId(c gecho.Context) error {
for i := 0; i < len(newBatchTxn); i++ {
l2Tx := new(types.Transaction)
txDecodeMetaData := new(eigenda.TransactionMeta)
if newBatchTxn[i].TxMeta == nil {
log.Error("Batch tx metadata shouldn't be nil")
continue
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we just skip this tx? Perhaps, we might need to return error and wait for developers to check this exception?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can't skip this transaction, because the batch submitter always rollup transactions sequentially, and currently it will block on that particular batch, keep retrying and returning an error, a metrics warning will be added here

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the error will return out directly

@Sha3nS Sha3nS requested a review from abelliumnt June 27, 2023 08:30
@Sha3nS Sha3nS requested a review from wukongcheng June 27, 2023 08:31
@wukongcheng wukongcheng merged commit 9b37a07 into develop Jun 27, 2023
@wukongcheng wukongcheng deleted the bugfix/sigma-MNT-26 branch June 27, 2023 08:33
@Sha3nS Sha3nS restored the bugfix/sigma-MNT-26 branch June 27, 2023 08:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants