Skip to content

feat(vm): optimize TVM delegate and undelegate execution - #3

Open
ouy95917 wants to merge 1 commit into
developfrom
opt/disallow-stakev2-after-suicide
Open

feat(vm): optimize TVM delegate and undelegate execution#3
ouy95917 wants to merge 1 commit into
developfrom
opt/disallow-stakev2-after-suicide

Conversation

@ouy95917

@ouy95917 ouy95917 commented Aug 13, 2026

Copy link
Copy Markdown
Owner

What does this PR do?

This PR optimizes the execution of SELFDESTRUCT, FreezeBalanceV2, UnfreezeBalanceV2, WithdrawExpireUnfreeze, and CancelAllUnfreezeV2 by exiting early in specific edge cases to improve performance.

Why are these changes required?

To streamline the related execution paths and improve processing efficiency in specific scenarios.

This PR has been tested by:

  • Unit Tests
  • Manual Testing

Follow up

The release and activation plans will be evaluated separately.

Extra details

The version identifier used in this PR is provisional and may be adjusted later.

@ouy95917 ouy95917 changed the title fix(vm): harden Stake 2.0 state validation after SELFDESTRUCT fix(vm): optimize Stake 2.0 execution in edge cases Aug 13, 2026
@ouy95917 ouy95917 changed the title fix(vm): optimize Stake 2.0 execution in edge cases fix(vm): optimize Stake 2.0 operation handling Aug 13, 2026
@ouy95917 ouy95917 changed the title fix(vm): optimize Stake 2.0 operation handling opt(vm): optimize Stake 2.0 operation handling Aug 13, 2026
@ouy95917 ouy95917 changed the title opt(vm): optimize Stake 2.0 operation handling feat(vm): optimize Stake 2.0 operation handling Aug 13, 2026
@ouy95917 ouy95917 changed the title feat(vm): optimize Stake 2.0 operation handling fix(vm): optimize Stake 2.0 instruction handling with SELFDESTRUCT Aug 13, 2026
@ouy95917 ouy95917 changed the title fix(vm): optimize Stake 2.0 instruction handling with SELFDESTRUCT feat(vm): optimize delegate and undelegate instruction handling Aug 14, 2026
@ouy95917
ouy95917 force-pushed the opt/disallow-stakev2-after-suicide branch from 802092b to 2a4f859 Compare August 14, 2026 10:25
@ouy95917 ouy95917 changed the title feat(vm): optimize delegate and undelegate instruction handling feat(vm): Optimizes the TVM execution handling of delegate and undelegate instructions Aug 14, 2026
@ouy95917 ouy95917 changed the title feat(vm): Optimizes the TVM execution handling of delegate and undelegate instructions feat(vm): optimize TVM delegate and undelegate execution Aug 15, 2026
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.

2 participants