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

New script verify with ckb-vm pause #4291

Merged
merged 318 commits into from
Aug 12, 2024

Conversation

chenyukang
Copy link
Collaborator

@chenyukang chenyukang commented Jan 4, 2024

What problem does this PR solve?

New script verify flow based on ckb-vm pause

What is changed and how it works?

  1. Use a job queue for pending transactions waiting for verifying
  2. Multiple workers trigger the verification process by picking task from queue
  3. Verification is changed to async style
  4. Use channel to resume/suspend vm
  5. No snapshot from VM machines
  6. No Suspend state from cache
  7. All transactions from remote peer will be added into queue

What's Changed:

Related changes

  • PR to update owner/repo:
  • Need to cherry-pick to the release branch

Check List

Tests

  • Unit test
  • Integration test
  • Manual test (add detailed scripts or steps below)
  • No code ci-runs-only: [ quick_checks,linters ]

Side effects

  • Performance regression
  • Breaking backward compatibility

Release note

Title Only: Include only the PR title in the release note.

@chenyukang chenyukang requested a review from a team as a code owner January 4, 2024 10:15
@chenyukang chenyukang requested review from doitian and removed request for a team January 4, 2024 10:15
@chenyukang chenyukang marked this pull request as draft January 4, 2024 10:17
@chenyukang chenyukang force-pushed the yukang-new-verify branch 10 times, most recently from 6f64322 to 60a65ba Compare January 17, 2024 07:36
@chenyukang chenyukang marked this pull request as ready for review January 17, 2024 16:20
@chenyukang chenyukang force-pushed the yukang-new-verify branch 2 times, most recently from 9e339fa to 9c66560 Compare January 17, 2024 17:03
@chenyukang chenyukang changed the title [WIP] New script verify with ckb-vm pause New script verify with ckb-vm pause Jan 18, 2024
@chenyukang chenyukang force-pushed the yukang-new-verify branch 2 times, most recently from 3fa3376 to b0f1d76 Compare January 18, 2024 06:49
@eval-exec eval-exec added t:enhancement Type: Feature, refactoring. m:vm labels Jan 18, 2024
tx-pool/src/process.rs Outdated Show resolved Hide resolved
tx-pool/src/process.rs Outdated Show resolved Hide resolved
eval-exec
eval-exec previously approved these changes Aug 2, 2024
zhangsoledad
zhangsoledad previously approved these changes Aug 3, 2024
@zhangsoledad zhangsoledad added this pull request to the merge queue Aug 3, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Aug 3, 2024
@zhangsoledad zhangsoledad added this pull request to the merge queue Aug 5, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Aug 5, 2024
@eval-exec
Copy link
Collaborator

@zhangsoledad We need to merge #4563 firstly

@eval-exec
Copy link
Collaborator

Although the CI issues haven't been completely resolved, they no longer affect PR merges.
I also suggest squashing multiple commits into a few.

@chenyukang chenyukang added this pull request to the merge queue Aug 12, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Aug 12, 2024
@chenyukang chenyukang added this pull request to the merge queue Aug 12, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Aug 12, 2024
@chenyukang chenyukang enabled auto-merge August 12, 2024 09:55
@chenyukang chenyukang dismissed stale reviews from eval-exec and zhangsoledad via b140158 August 12, 2024 10:06
@chenyukang chenyukang added this pull request to the merge queue Aug 12, 2024
Merged via the queue into nervosnetwork:develop with commit 9e924c9 Aug 12, 2024
32 checks passed
@doitian doitian mentioned this pull request Aug 19, 2024
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
m:vm t:enhancement Type: Feature, refactoring. t:epic Type: Epic u:ckb2023 Upgrade: Fork ckb2023
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

7 participants