Closed nicholasoxford closed 3 months ago
This is strange because in the code I see the 3200 limit, but I only see 1000 limits for mine
Any FIX to change the compute units.?
So I actually did some more digging on this, its when you initialize the account before you start mining
Its because dynamic_cus
is set to true, so it simulates the transaction (line 65 in send_and_confirm.rs
) and returns zero compute units from the simulation. Then line 85 adds +1000
I changed line 85 too
let cu_budget_ix = ComputeBudgetInstruction::set_compute_unit_limit(
units_consumed as u32 + 3201,
);
After a bunch of tries I was able to create the account and start mining
This looks like it was solved with 0.4.9
https://solana.fm/tx/H4RDE5jojaDKguZz4J1Q3NNdMQhr8WyejkDNSUmZGGYnMWyo95S4nZD3wPJm8YvABHq1AUsDTLSBgQF1dppwHEH
Using CLI =0.4.8