fix: resubmit just one pending block

This commit is contained in:
Daniil Polyakov 2026-02-13 15:44:16 +03:00
parent c63ecd6aba
commit 91e57bbf1b

View File

@ -174,8 +174,11 @@ async fn retry_pending_blocks_loop(
(pending_blocks, client) (pending_blocks, client)
}; };
info!("Resubmitting {} pending blocks", pending_blocks.len()); if let Some(block) = pending_blocks.first() {
for block in &pending_blocks { info!(
"Resubmitting pending block with id {}",
block.header.block_id
);
// TODO: We could cache the inscribe tx for each pending block to avoid re-creating it // TODO: We could cache the inscribe tx for each pending block to avoid re-creating it
// on every retry. // on every retry.
let (tx, _msg_id) = block_settlement_client let (tx, _msg_id) = block_settlement_client