Skip to content

Commit 1a8bae4

Browse files
committed
try to run integ tests
1 parent a59b699 commit 1a8bae4

File tree

6 files changed

+96
-12299
lines changed

6 files changed

+96
-12299
lines changed

Cargo.lock

Lines changed: 64 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,10 @@ magicblock-config = { path = "./magicblock-config" }
124124
magicblock-config-helpers = { path = "./magicblock-config-helpers" }
125125
magicblock-config-macro = { path = "./magicblock-config-macro" }
126126
magicblock-core = { path = "./magicblock-core" }
127-
magicblock-delegation-program = { git = "https://github.com/magicblock-labs/delegation-program.git", rev = "5fb8d20", features = [
128-
"no-entrypoint",
129-
] }
130-
#magicblock-delegation-program = { path="../delegation-program", features = ["no-entrypoint"] }
127+
# magicblock-delegation-program = { git = "https://github.com/magicblock-labs/delegation-program.git", rev = "5fb8d20", features = [
128+
# "no-entrypoint",
129+
# ] }
130+
magicblock-delegation-program = { path="../delegation-program", features = ["no-entrypoint"] }
131131
magicblock-geyser-plugin = { path = "./magicblock-geyser-plugin" }
132132
magicblock-ledger = { path = "./magicblock-ledger" }
133133
magicblock-metrics = { path = "./magicblock-metrics" }

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ impl TransactionStrategyExecutionError {
119119
) -> Self {
120120
// There's always 2 budget instructions in front
121121
const OFFSET: u8 = 2;
122-
const OUTDATED_SLOT: u32 = dlp::error::DlpError::OutdatedSlot as u32;
122+
const OUTDATED_SLOT: u32 = dlp::error::DlpError::NonceOutOfOrder as u32;
123123

124124
match err {
125125
// Filter CommitIdError by custom error code

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

Lines changed: 26 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -48,31 +48,32 @@ impl TasksBuilder for TaskBuilderImpl {
4848
base_intent: &ScheduledBaseIntent,
4949
persister: &Option<P>,
5050
) -> TaskBuilderResult<Vec<Box<dyn BaseTask>>> {
51-
let (accounts, allow_undelegation) = match &base_intent.base_intent {
52-
MagicBaseIntent::BaseActions(actions) => {
53-
let tasks = actions
54-
.iter()
55-
.map(|el| {
56-
let task = BaseActionTask {
57-
context: Context::Standalone,
58-
action: el.clone(),
59-
};
60-
let task =
61-
ArgsTask::new(ArgsTaskType::BaseAction(task));
62-
Box::new(task) as Box<dyn BaseTask>
63-
})
64-
.collect();
65-
return Ok(tasks);
66-
}
67-
MagicBaseIntent::Commit(t) => {
68-
(t.get_committed_accounts(), false, t.is_commit_diff())
69-
}
70-
MagicBaseIntent::CommitAndUndelegate(t) => (
71-
t.commit_action.get_committed_accounts(),
72-
true,
73-
t.commit_action.is_commit_diff(),
74-
),
75-
};
51+
let (accounts, allow_undelegation, commit_diff) =
52+
match &base_intent.base_intent {
53+
MagicBaseIntent::BaseActions(actions) => {
54+
let tasks = actions
55+
.iter()
56+
.map(|el| {
57+
let task = BaseActionTask {
58+
context: Context::Standalone,
59+
action: el.clone(),
60+
};
61+
let task =
62+
ArgsTask::new(ArgsTaskType::BaseAction(task));
63+
Box::new(task) as Box<dyn BaseTask>
64+
})
65+
.collect();
66+
return Ok(tasks);
67+
}
68+
MagicBaseIntent::Commit(t) => {
69+
(t.get_committed_accounts(), false, t.is_commit_diff())
70+
}
71+
MagicBaseIntent::CommitAndUndelegate(t) => (
72+
t.commit_action.get_committed_accounts(),
73+
true,
74+
t.commit_action.is_commit_diff(),
75+
),
76+
};
7677

7778
let committed_pubkeys = accounts
7879
.iter()

0 commit comments

Comments
 (0)