Skip to content

Commit

Permalink
fix: reduce step to allow compute unit price (#554)
Browse files Browse the repository at this point in the history
  • Loading branch information
guibescos authored Jan 9, 2025
1 parent 7e5ab90 commit aa41028
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions staking/cli/src/instructions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -648,9 +648,9 @@ pub async fn fetch_publisher_caps_and_advance(
Vec::<u8>::from(merkle_proofs.first().unwrap().message.clone());


for i in (0..publisher_caps_message_bytes.len()).step_by(1000) {
for i in (0..publisher_caps_message_bytes.len()).step_by(950) {
let chunk =
&publisher_caps_message_bytes[i..min(i + 1000, publisher_caps_message_bytes.len())];
&publisher_caps_message_bytes[i..min(i + 950, publisher_caps_message_bytes.len())];

write_publisher_caps(rpc_client, payer, publisher_caps, i, chunk).await;
}
Expand Down

0 comments on commit aa41028

Please sign in to comment.