File tree Expand file tree Collapse file tree 2 files changed +16
-8
lines changed
magicblock-committor-service/src/tasks Expand file tree Collapse file tree 2 files changed +16
-8
lines changed Original file line number Diff line number Diff 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 (
Original file line number Diff line number Diff line change 11#! /bin/bash
22solana-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 \
You can’t perform that action at this time.
0 commit comments