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

feat: create job to re decode tx by type #255

Merged
merged 4 commits into from
Jul 24, 2023
Merged

Conversation

fibonacci998
Copy link
Contributor

No description provided.

@fibonacci998 fibonacci998 requested a review from peara July 21, 2023 02:15
Copy link
Member

Choose a reason for hiding this comment

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

đổi tên cái file này đi, nó dùng chung mà

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

.joinRelated('messages')
.where('transaction.id', '>', currentId)
.andWhere('messages.type', type)
.limit(config.jobRedecodeTx.limitRecordGet);
Copy link
Member

Choose a reason for hiding this comment

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

như này là nó limit theo số message đấy

Copy link
Contributor Author

Choose a reason for hiding this comment

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

em distinct đó anh, nên câu này limit theo số tx đó

}

const patchQueriesMsg: any[] = [];
const patchQueriesTx = txOnDB.map((tx) => {
Copy link
Member

Choose a reason for hiding this comment

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

cái đoạn này có dùng chung được cái gì đã code ko?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

không có anh ạ

})
async jobRedecodeTxIBC() {
// check if job not done, execute as
const blockCheckpoint = await BlockCheckpoint.query()
Copy link
Member

Choose a reason for hiding this comment

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

cái này thì cứ gọi là chạy chứ sao cần checkpoint nhỉ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thêm checkpoint để biết là nó đã chạy ấy anh

Copy link
Member

Choose a reason for hiding this comment

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

nếu muốn biết nó đã chạy thì để ở trong job là được, chứ lưu vào nó lại lẫn với các job khác

Copy link
Contributor Author

Choose a reason for hiding this comment

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

cái này đang ở trong job luôn mà anh

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

Copy link
Contributor

Choose a reason for hiding this comment

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

@peara em cần cái này ddeert làm ibc luôn ạ

@fibonacci998 fibonacci998 requested a review from peara July 24, 2023 03:44
@peara peara merged commit 10a3e56 into main Jul 24, 2023
@peara peara deleted the fix/update-decode-tx-ibc branch July 24, 2023 07:23
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