Skip to content

fix bounce msg processing issue #2833

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

masterjedy
Copy link

@masterjedy masterjedy commented Jul 5, 2025

Summary

Fix the bounced message processing issue.

Rationale

Checking bounce flag and ignoring bounced message occurs after trying to load reference in the tx body, but bounced messages don't have references, so it causes a crash.
The check for empty slice at the botton of the recv() function doesn't help, because bounced messages have a body starting with 0xFFFF.... It only allows to keep received TONs.

How has this been tested?

The change is tested in other project, and I ran this project's tests - they pass.

  • Current tests cover my changes
  • Added new tests
  • Manually tested the code

Signed-off-by: master_jedy <yura.zarudny@gmail.com>
Copy link

vercel bot commented Jul 5, 2025

@masterjedy is attempting to deploy a commit to the Pyth Network Team on Vercel.

A member of the Team first needs to authorize it.

@masterjedy masterjedy marked this pull request as ready for review July 6, 2025 10:47
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