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

Bugfix/solana priority fees (#7916) #7917

Merged
merged 5 commits into from
Oct 4, 2024

Conversation

hzheng-ledger
Copy link
Contributor

  • chore(LLC): update @solana/[email protected], @solana/[email protected]

  • feat(LLC): calc and possibly append priority fee to solana instructions

  • feat(LLC): add solana compute units optimisations


✅ Checklist

  • npx changeset was attached.
  • Covered by automatic tests.
  • **Impact of the changes: Add priority fees for solana transaction
    • ...

📝 Description

It is a duplicate of https://github.com/hoodieshq/ledger-live/pull/4/files

Issue:
https://support.ledger.com/hc/en-us/articles/17531561702813-Temporary-issue-with-Staking-and-Sending-Solana-SOL-in-Ledger-Live-Your-transaction-may-have-failed?support=true

Solution
Advised solution to mitigate this is to estimate and add Priority Fee to the transaction to make it accepted by validators faster.
Calculate and request optimal amount of Compute Units required for tx
Note:
Required getRecentPrioritizationFees rpc call solana-labs/solana-web3.js#1464 in @solana/[email protected].
Hence, @solana/web3.js and @solana/spl-token have been updated.

❓ Context


🧐 Checklist for the PR Reviewers

  • The code aligns with the requirements described in the linked JIRA or GitHub issue.
  • The PR description clearly documents the changes made and explains any technical trade-offs or design decisions.
  • There are no undocumented trade-offs, technical debt, or maintainability issues.
  • The PR has been tested thoroughly, and any potential edge cases have been considered and handled.
  • Any new dependencies have been justified and documented.
  • Performance considerations have been taken into account. (changes have been profiled or benchmarked if necessary)

* chore(LLC): update @solana/[email protected], @solana/[email protected]

* feat(LLC): calc and possibly append priority fee to solana instructions

* feat(LLC): add solana compute units optimisations

---------

Co-authored-by: Mikhail <[email protected]>
@hzheng-ledger hzheng-ledger requested a review from a team as a code owner September 26, 2024 08:16
Copy link

vercel bot commented Sep 26, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
web-tools ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 4, 2024 7:05am
4 Skipped Deployments
Name Status Preview Comments Updated (UTC)
ledger-live-docs ⬜️ Ignored (Inspect) Visit Preview Oct 4, 2024 7:05am
ledger-live-github-bot ⬜️ Ignored (Inspect) Visit Preview Oct 4, 2024 7:05am
native-ui-storybook ⬜️ Ignored (Inspect) Visit Preview Oct 4, 2024 7:05am
react-ui-storybook ⬜️ Ignored (Inspect) Visit Preview Oct 4, 2024 7:05am

@hzheng-ledger hzheng-ledger merged commit 87b706c into develop Oct 4, 2024
53 of 54 checks passed
@hzheng-ledger hzheng-ledger deleted the bugfix/solana-priority-fees branch October 4, 2024 08:36
hedi-edelbloute added a commit that referenced this pull request Oct 11, 2024
hedi-edelbloute added a commit that referenced this pull request Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
common Has changes in live-common
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant