Skip to content

Commit a1dfd59

Browse files
authored
hotfix: increate finalize + commit compute units (#585)
Finalize compute units are higher than expected. [see](https://explorer.solana.com/tx/2dGrvGcxh8Vf23iwnKgXgrTLBYNCxFdpzRjwpABfEx5g5cqxV4M3wNLf4gcvdQrKx8i7ocNDC2iN97Pw6sEvoJTe/inspect?cluster=devnet) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Improvements** * Enhanced error diagnostics with additional contextual information for commit failure troubleshooting. * **Chores** * Increased compute unit allocations for transaction processing to optimize resource handling. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent cb55824 commit a1dfd59

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

magicblock-accounts/src/scheduled_commits_processor.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,10 @@ impl ScheduledCommitsProcessorImpl {
262262
).await;
263263
}
264264
_ => {
265-
error!("Failed to commit: {:?}", err);
265+
error!(
266+
"Failed to commit in slot: {}, blockhash: {}. {:?}",
267+
intent_meta.slot, intent_meta.blockhash, err
268+
);
266269
}
267270
}
268271
}

magicblock-committor-service/src/tasks/args_task.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,10 +131,10 @@ impl BaseTask for ArgsTask {
131131

132132
fn compute_units(&self) -> u32 {
133133
match &self.task_type {
134-
ArgsTaskType::Commit(_) => 65_000,
134+
ArgsTaskType::Commit(_) => 70_000,
135135
ArgsTaskType::BaseAction(task) => task.action.compute_units,
136136
ArgsTaskType::Undelegate(_) => 70_000,
137-
ArgsTaskType::Finalize(_) => 40_000,
137+
ArgsTaskType::Finalize(_) => 70_000,
138138
}
139139
}
140140

magicblock-committor-service/src/tasks/buffer_task.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ impl BaseTask for BufferTask {
110110

111111
fn compute_units(&self) -> u32 {
112112
match self.task_type {
113-
BufferTaskType::Commit(_) => 65_000,
113+
BufferTaskType::Commit(_) => 70_000,
114114
}
115115
}
116116

0 commit comments

Comments
 (0)