Do not count rejected transactions towards block size limit
@@ -142,6 +142,7 @@ impl FragmentSelectionAlgorithm for OldestFirst {
match result {
Ok(ledger_new) => {
+ current_total_size = total_size;
contents_builder.push(fragment);
ledger = ledger_new;
tracing::debug!("successfully applied and committed the fragment");
@@ -157,8 +158,6 @@ impl FragmentSelectionAlgorithm for OldestFirst {
}
}
- current_total_size = total_size;
-
if total_size == ledger_params.block_content_max_size {
break;
}
