solana-playground / solana-playground

Quickly develop, deploy and test Solana programs from browsers
https://beta.solpg.io
Apache License 2.0
399 stars 135 forks source link

Add priority fees #210

Closed acheroncrypto closed 2 months ago

acheroncrypto commented 2 months ago

Problem

It is getting harder and harder to land transactions without using priority fees on public clusters.

Solution

Add priority fees for all transactions, including program deployment transactions.

For most transactions, this should be straight forward to do since playground has a standardized way of sending transactions with PgTx.send. However, the difficult part about the implementation is that, the buffer write transactions of the program deployment currently use maximum transaction size, making it impossible to add priority fee instruction.

acheroncrypto commented 2 months ago

Added in https://github.com/solana-playground/solana-playground/commit/dbf2837d970dfe84c60228aa390f8e04bd2ac3db.