From aa410283cbeead91da6c1b79b156752adc4a526f Mon Sep 17 00:00:00 2001 From: guibescos <59208140+guibescos@users.noreply.github.com> Date: Thu, 9 Jan 2025 15:08:29 +0100 Subject: [PATCH] fix: reduce step to allow compute unit price (#554) --- staking/cli/src/instructions.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/staking/cli/src/instructions.rs b/staking/cli/src/instructions.rs index 0cbd39dc..ab1fc379 100644 --- a/staking/cli/src/instructions.rs +++ b/staking/cli/src/instructions.rs @@ -648,9 +648,9 @@ pub async fn fetch_publisher_caps_and_advance( Vec::::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; }