All Questions
14 questions
2
votes
1
answer
23
views
zig programs on solana
I'm trying to deploy a solana zig program, but running into some ELF issues and was wondering if someone has any experience with that
here is my repo for reproduction https://github.com/anticode-dev/...
2
votes
0
answers
28
views
solana localnet - Error while upgrading a program loaded at genesis using `solana-test-validator`?
Is it possible to redeploy a program if it was loaded at genesis (specifically on solana-test-validator)?
Error while upgrading a program loaded at genesis
While doing some testing, I am experiencing ...
2
votes
1
answer
439
views
Got error "account data too small for instruction" when run Anchor deploy?
Sometimes I got this error when deploy program with running "anchor deploy":
Error: Deploying program failed: RPC response error -32002: Transaction simulation failed: Error processing ...
2
votes
1
answer
74
views
Deploy a program from another program
I'm trying to build a bridge and I need to create pools in both chains
In Solidity, I would be creating a contract that deploys and manage individual pools, but not sure if that can be achieved in ...
1
vote
3
answers
314
views
Deploying a program to mainnet seems impossible?
I have no issue deploying to testnet and devnet, but everything I've tried to get the program to deploy to mainnet using the CLI ends up with it hanging.
Has anyone deployed a program recently (April ...
2
votes
1
answer
313
views
Cannot deploy program onto solana mainnet
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 ...
0
votes
1
answer
93
views
Deploying program with sol_remaining_compute_units() gives "invalid account data"
Including something like
msg!("remaining compute: {}", solana_program::compute_units::sol_remaining_compute_units());
will lead to error when deploying
RPC URL: https://api.devnet.solana....
1
vote
0
answers
125
views
Cannot deploy program on mainnet for two weeks
I use solana command tool to deploy program on mainnet and always got failed. I have try for two weeks.
I try 1.14.X, 1.16.X and 1.17.X. But got failed.
tangaoyuan@tangaoyuandeMacBook-Pro program % ...
4
votes
1
answer
256
views
What's the difference between the different program loaders?
what's the difference between:
BPFLoaderUpgradeab1e11111111111111111111111,
BPFLoader1111111111111111111111111111111111,
BPFLoader2111111111111111111111111111111111
for deploying your program?
5
votes
1
answer
200
views
How do you figure out your current program deployed max size?
When you deploy a program to a cluster, the default size allocated is the binary size * 2. However you won't be using the entire space on the cluster. How do you figure out the space left available in ...
0
votes
2
answers
338
views
My sol stuck in prgram. How can I close program and recover it?
I was deploying program and by mistake I missed the keyword program and just typed
solana deploy <PROGRAM_FILEPATH>
which return the below program Id and there is no upgradeable authority. Now ...
3
votes
1
answer
759
views
solana program deploy failed with "Blockhash expired" message
solana program deploy command to devnet fails constantly with:
Blockhash expired. x retries remaining
My Setup:
working against devnet.
command includes all workarounds documented:
solana program ...
3
votes
1
answer
256
views
is solana program (smart contract) immutable?
I confuse a bit about this. If I can deploy a program as many as I want to a specific account so program in Solana is mutable. It's unlike other blockchains like Ethereum when deployed contract its ...
11
votes
1
answer
393
views
Why is SOL refunded after a program deploy?
I've noticed that some of the SOL required to deploy a program is refunded after the deploy. What's going on to cause this? Is it that the program is uploaded to multiple accounts and then one of them ...