Skip to main content

All Questions

Tagged with
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
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