Skip to main content

Questions tagged [compute]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
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 ...
Lou Kamades's user avatar
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 ...
TheLastSamurai's user avatar
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 ...
TheLastSamurai's user avatar
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?
josephtaylor.art's user avatar
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: ...
P. S.'s user avatar
  • 31
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? ...
Someone's user avatar
  • 73
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': ...
kokiez's user avatar
  • 133
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 ...
Whiteseal's user avatar
  • 3,597
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 ...
chinepun.sol's user avatar
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, ...
Jacob's user avatar
  • 1