Skip to content

feat(db): treat WitnessCreate as a permission-change tx - #7130

Merged
lvs0075 merged 1 commit into
tronprotocol:release_v4.8.3from
halibobo1205:feat/witness-create-permission-reverify
Nov 27, 2026
Merged

lvs0075 merged 1 commit into
tronprotocol:release_v4.8.3from
halibobo1205:feat/witness-create-permission-reverify

Conversation

@halibobo1205

Copy link
Copy Markdown
Collaborator

What does this PR do?

Adds WitnessCreateContract to Manager#isMultiSignTransaction, so a WitnessCreate transaction is handled the same way as AccountPermissionUpdateContract. When a block or pending pool contains one, its owner is recorded as an account whose permissions changed.

Why are these changes required?

WitnessCreate also changes the owner's permissions. Besides adding the witness permission, AccountCapsule#setDefaultWitnessPermission creates the default owner and active permissions if the account has none yet. Until now only AccountPermissionUpdateContract was treated as a permission change. This PR makes WitnessCreate consistent with it, so that later transactions from the same owner are checked against the updated permissions.

This PR has been tested by:

  • Unit Tests (ManagerTest)

Follow up

None.

Extra details

No consensus or protocol change. This only affects which transactions are re-verified locally.

@lvs0075
lvs0075 merged commit b715a9f into tronprotocol:release_v4.8.3 Nov 27, 2026
16 of 17 checks passed
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.

4 participants