Skip to content

Commit 61b7a03

Browse files
committed
Update the tests
1 parent 02ddf9b commit 61b7a03

File tree

7 files changed

+270
-68
lines changed

7 files changed

+270
-68
lines changed

magicblock-accounts/src/scheduled_commits_processor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ impl ScheduledCommitsProcessorImpl {
260260
signature
261261
),
262262
Err(err) => {
263-
error!("Failed to signal sent commit via transaction: {}", err);
263+
error!("Failed to signal sent commit via transaction: [{}] {:#?} (snawaz)", err, err);
264264
}
265265
}
266266
}

magicblock-committor-service/src/intent_execution_manager/intent_execution_engine.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,8 @@ where
274274
) {
275275
let instant = Instant::now();
276276

277+
warn!("snawaz: EXECUTE: {:#?}", intent.inner);
278+
277279
// Execute an Intent
278280
let result = executor.execute(intent.inner.clone(), persister).await;
279281
let _ = result.inner.as_ref().inspect_err(|err| {

magicblock-committor-service/src/intent_executor/mod.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ where
168168
let committed_pubkeys = match base_intent.get_committed_pubkeys() {
169169
Some(value) => value,
170170
None => {
171+
warn!("snawaz: execute_inner => single_stage_execution_flow");
171172
// Build tasks for commit stage
172173
let commit_tasks = TaskBuilderImpl::commit_tasks(
173174
&self.task_info_fetcher,
@@ -191,7 +192,6 @@ where
191192
.await;
192193
}
193194
};
194-
195195
// Build tasks for commit & finalize stages
196196
let (commit_tasks, finalize_tasks) = {
197197
let commit_tasks_fut = TaskBuilderImpl::commit_tasks(
@@ -217,6 +217,7 @@ where
217217
persister,
218218
)? {
219219
StrategyExecutionMode::SingleStage(strategy) => {
220+
warn!("snawaz: execute_inner => single_stage_execution_flow (again)");
220221
trace!("Executing intent in single stage");
221222
self.single_stage_execution_flow(
222223
base_intent,
@@ -229,6 +230,7 @@ where
229230
commit_stage,
230231
finalize_stage,
231232
} => {
233+
warn!("snawaz: execute_inner => two_stage_execution_flow");
232234
trace!("Executing intent in two stages");
233235
self.two_stage_execution_flow(
234236
&committed_pubkeys,
@@ -474,6 +476,8 @@ where
474476
mut prepared_message: VersionedMessage,
475477
) -> IntentExecutorResult<MagicBlockSendTransactionOutcome, InternalError>
476478
{
479+
warn!("snawaz: send_prepared_message: {:#?}", prepared_message);
480+
477481
let latest_blockhash = self.rpc_client.get_latest_blockhash().await?;
478482
match &mut prepared_message {
479483
VersionedMessage::V0(value) => {

0 commit comments

Comments
 (0)