Skip to content

Commit d4a17a3

Browse files
fix: undelegation exceeded computational budget (#287)
# Description - fix: delegation exceeded computational budget <!-- greptile_comment --> ## Greptile Summary Increased compute budget constants in `magicblock-accounts/src/remote_account_committer.rs` to prevent transactions from failing during delegation operations. - Increased `BASE_COMPUTE_BUDGET` from 60,000 to 80,000 CUs for base transaction overhead - Increased `COMPUTE_BUDGET_PER_UNDELEGATION` from 45,000 to 70,000 CUs to accommodate higher computational needs during undelegation - Maintained `COMPUTE_BUDGET_PER_COMMITTEE` at 45,000 CUs for standard committee operations - Integration tests in `/test-integration/schedulecommit/test-scenarios/tests/` validate the changes work with the new compute budgets <!-- /greptile_comment -->
1 parent e49efc1 commit d4a17a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

magicblock-accounts/src/remote_account_committer.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -379,9 +379,9 @@ impl RemoteAccountCommitter {
379379
) -> (Instruction, Instruction) {
380380
// TODO(thlorenz): We may need to consider account size as well since
381381
// the account is copied which could affect CUs
382-
const BASE_COMPUTE_BUDGET: u32 = 60_000;
382+
const BASE_COMPUTE_BUDGET: u32 = 80_000;
383383
const COMPUTE_BUDGET_PER_COMMITTEE: u32 = 45_000;
384-
const COMPUTE_BUDGET_PER_UNDELEGATION: u32 = 45_000;
384+
const COMPUTE_BUDGET_PER_UNDELEGATION: u32 = 70_000;
385385

386386
let compute_budget = BASE_COMPUTE_BUDGET
387387
+ (COMPUTE_BUDGET_PER_COMMITTEE * committee_count)

0 commit comments

Comments
 (0)