Skip to content

fix(tip-money): verify new tip receiver - #164

Draft
lizhang-jito wants to merge 1 commit into
masterfrom
lizhang/tip-receiver-validation
Draft

fix(tip-money): verify new tip receiver#164
lizhang-jito wants to merge 1 commit into
masterfrom
lizhang/tip-receiver-validation

Conversation

@lizhang-jito

@lizhang-jito lizhang-jito commented Aug 1, 2026

Copy link
Copy Markdown

Problem:

The current function doesn't verify the new tip receiver belongs to the correct PDA of the validator.
Since validator side already provide enough info, verifying the new receiver is the correct PDA is feasible.

In this PR

  • Verify the signer associate with the vote account.
  • Use the vote account to calc the correct PDA
  • Do the verification of new tip receiver.

Unit tested

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.

1 participant