2

First of all, it's super slow when deploy(anchor deploy) my program to mainnet, I got error:

Blockhash expired. 4 retries remaining
Blockhash expired. 3 retries remaining
Blockhash expired. 2 retries remaining
Blockhash expired. 1 retries remaining
⠉   9.6% | Sending 24/176 transactions [block height 237840819; re-sign in 162 blocks]

solana cluster-version: 1.17.25 solana --version: 1.17.25

I try to update solana-cli to the latest version: 1.17.28, problem still exists.

But when I deploy the same code to devnet, its fast and works fine.

Why this issue happen and how to fix it? Thanx

3
  • 1
    This is a general issue with congestion on mainnet unfortunately. Please upgrade to 1.18.8 and try that, since it has some slightly updated logic, including the ability to set priority fees during deployment
    – Jon C
    Commented Apr 3 at 11:02
  • I had the same problem. To deployed I use Solpg with private quicknode rpc and very high gas fees
    – user12596
    Commented Apr 3 at 20:39
  • @user12596; how do you apply gas fees in solana playground? Commented Apr 20 at 22:49

1 Answer 1

0

If you are using Solana CLI 1.18.x, you can try this:

With Solana CLI:

solana --version 
solana-cli 1.18.12 (src:b9c13825; feat:4215500110, client:SolanaLabs)
solana program deploy --max-sign-attempts 60 --with-compute-unit-price 10000 

With Anchor CLI:

anchor --version 
anchor-cli 0.30.1
anchor deploy -- --max-sign-attempts 60 --with-compute-unit-price 10000 

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.