Skip to content

Commit 22f3db7

Browse files
committed
increase compute budget to 400_000
1 parent 8062667 commit 22f3db7

File tree

3 files changed

+33
-6
lines changed

3 files changed

+33
-6
lines changed

cli/maintainer/src/maintenance.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ use solana_program::{
2525
};
2626
use solana_sdk::{
2727
account::{Account, ReadableAccount},
28+
compute_budget::ComputeBudgetInstruction,
2829
fee_calculator::DEFAULT_TARGET_LAMPORTS_PER_SIGNATURE,
2930
instruction::Instruction,
3031
signer::{keypair::Keypair, Signer},
@@ -1725,7 +1726,13 @@ pub fn try_perform_maintenance(
17251726
for keypair in &maintenance_instruction.additional_signers {
17261727
signers.push(keypair);
17271728
}
1728-
config.sign_and_send_transaction(&[maintenance_instruction.instruction], &signers)?;
1729+
1730+
let budget_instruction = ComputeBudgetInstruction::request_units(400_000, 0);
1731+
1732+
config.sign_and_send_transaction(
1733+
&[budget_instruction, maintenance_instruction.instruction],
1734+
&signers,
1735+
)?;
17291736
Ok(Some(maintenance_instruction.output))
17301737
}
17311738
None => Ok(None),

multisig

tests/deploy_test_solido.py

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,14 @@ def get_vote_account_withdrawer(vote_account: str) -> str:
189189
solido_instance['rewards_withdraw_authority'],
190190
)
191191

192+
solana(
193+
'validator-info',
194+
'publish',
195+
'--keypair',
196+
'./test-ledger/validator-keypair.json',
197+
"solana-test-validator",
198+
)
199+
192200

193201
# Allow only validators that are voting, have 100% commission, and have their
194202
# withdrawer set to Solido's rewards withdraw authority. On a local testnet,
@@ -213,10 +221,10 @@ def get_vote_account_withdrawer(vote_account: str) -> str:
213221
# Create two validators of our own, so we have a more interesting stake
214222
# distribution. These validators are not running, so they will not earn
215223
# rewards.
216-
validators.extend(
217-
add_validator(i, vote_account=None)
218-
for i in range(len(validators), len(validators) + 2)
219-
)
224+
# validators.extend(
225+
# add_validator(i, vote_account=None)
226+
# for i in range(len(validators), len(validators) + 2)
227+
# )
220228

221229

222230
print('Adding maintainer ...')
@@ -276,3 +284,15 @@ def get_vote_account_withdrawer(vote_account: str) -> str:
276284
]
277285
),
278286
)
287+
288+
289+
output = {
290+
"cluster": get_network(),
291+
"multisig_program_id": multisig_program_id,
292+
"multisig_address": multisig_instance,
293+
"solido_program_id": solido_program_id,
294+
"solido_address": solido_address,
295+
"st_sol_mint": st_sol_mint_account,
296+
}
297+
with open('../solido_test.json', 'w') as outfile:
298+
json.dump(output, outfile, indent=4)

0 commit comments

Comments
 (0)