Skip to content

Commit 1556ba8

Browse files
committed
WORKED: Program log: Processing instruction: CommitDiff (from the delegation-program)
1 parent db2d0b0 commit 1556ba8

File tree

2 files changed

+16
-8
lines changed

2 files changed

+16
-8
lines changed

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

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,21 @@ impl BaseTask for ArgsTask {
5151
data: value.committed_account.account.data.clone(),
5252
allow_undelegation: value.allow_undelegation,
5353
};
54-
dlp::instruction_builder::commit_state(
55-
*validator,
56-
value.committed_account.pubkey,
57-
value.committed_account.account.owner,
58-
args,
59-
)
54+
if value.commit_diff {
55+
dlp::instruction_builder::commit_diff(
56+
*validator,
57+
value.committed_account.pubkey,
58+
value.committed_account.account.owner,
59+
args,
60+
)
61+
} else {
62+
dlp::instruction_builder::commit_state(
63+
*validator,
64+
value.committed_account.pubkey,
65+
value.committed_account.account.owner,
66+
args,
67+
)
68+
}
6069
}
6170
ArgsTaskType::Finalize(value) => {
6271
dlp::instruction_builder::finalize(

test-integration/run-shecdulecommit-test-validator.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
#!/bin/bash
22
solana-test-validator \
3-
--log \
43
--rpc-port \
54
7799 \
65
-r \
76
--limit-ledger-size \
87
10000 \
98
--upgradeable-program \
109
DELeGGvXpWV2fqJUhqcF5ZSYMS4JTLjteaAMARRSaeSh \
11-
/Users/snawaz/projects/mb/magicblock-validator/test-integration/schedulecommit/elfs/dlp.so \
10+
/Users/snawaz/projects/mb/delegation-program/target/deploy/dlp.so \
1211
none \
1312
--upgradeable-program \
1413
DmnRGfyyftzacFb1XadYhWF6vWqXwtQk5tbr6XgR3BA1 \

0 commit comments

Comments
 (0)