Questions tagged [compute]
The compute tag has no usage guidance.
10 questions
4
votes
1
answer
165
views
How does the Solana BPF VM calculate how many Compute Units a program consumes?
For a given transaction, the Solana runtime consumes CUs for many “operations”. Examples of operations could be read/write locking accounts, syscalls, signature verification, etc. as seen in the cost ...
0
votes
0
answers
153
views
When landing Jupiter Swap transaction i'm getting error: "Program Error: "Instruction #1 Failed - Fallback functions are not supported"
can anyone help me in adding the compute limit and compute price in a transaction using Python?
I'm trying to add both instructions (compute limit and compute price) to the Jupiter Swap transaction ...
4
votes
1
answer
3k
views
How to set Compute Limit and Compute Unit Price using Python
I would like to set Compute Limit and Compute Unit Price before sending my transaction (Jupiter swap). I want to do this in order to optimize the Compute Units of my transaction. However, I cannot ...
2
votes
1
answer
27
views
Are transaction compute costs static or variable?
Do transactions with the same set of instructions (but just different accounts passed in) use the same amount of compute each time? Or is it variable?
3
votes
1
answer
99
views
How compute unites and Lamports are interrelated
How are the Lamports related to compute units?
For example, for one ED25529 signature verification, it costs 5000 lamports, so if we verify an ED25519 signature in a contract using: Program id: ...
5
votes
1
answer
3k
views
How can I analyze the reason for frequent BlockHeightExceeded errors?
I'm seeing a very high amount of BlockHeightExceeded errors. What could be the reason for these, and what are some possible troubleshooting steps that I can take to try to figure out the problem?
...
0
votes
1
answer
756
views
How to computeAmountOut in Python?
Assume i have the given information from raydium swap (retrieved it using simulateTransaction):
{
'status': 1,
'coin_decimals': 9,
'pc_decimals': 9,
'lp_decimals': 9,
'pool_pc_amount': ...
1
vote
0
answers
63
views
On-chain performance of HashSet
How many Compute Units (CU) does it cost to init a HashSet on-chain and perform a contains() check? Intuitively, the limited bpf instruction set will have a high overhead for hashing.
Consider these ...
3
votes
2
answers
2k
views
How to Increase compute limit above 200k compute
I am making a CPI to a heavy instruction in another program and running into insufficient compute limit issues. How do I increase the compute limit for my instruction. I once saw up to 1.4M compute ...
0
votes
2
answers
512
views
increase solana compute budget on localnet
general solana question, on localhost I am getting a "Program ETsjka7.....jsa87 consumed 200_000 of 200_000 compute units" error. I saw on twitter the max compute budget is 1.4m on mainnet, ...