1

Can someone who lately successfully deployed program to mainnet say what versions of solana-cli, anchor-cli,... did you use? When I try to deploy, it takes ages (on devnet its in 1 minute done) and in the end it fails with Error: Data writes to account failed: Custom error: Max retries exceeded.

I am using quicknode rpc, trying to upgrade/downgrade solana/anchor, but yet without success.

thanks

1 Answer 1

2

I solve this problem by add flag --with-compute-unit-price 1 (you can change 1 to any unit price you one, 1 = 1 microlamport). This flag will add priority fee for all your deployed tx. Just use the latest version solana cli 1.18.8 try this

anchor build

solana program deploy ./target/deploy/<..>.so --with-compute-unit-price 5

Solana CLI just update to apply priority fee for all tx.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.