Skip to content

Commit fd44f58

Browse files
authored
Apply suggestions from code review
1 parent 8856688 commit fd44f58

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

timeboost-builder/src/submit.rs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -181,17 +181,20 @@ impl Sender {
181181
continue;
182182
}
183183
let n = minicbor::len(&b);
184-
// If a single block exceeds the transaction size limit, skip it with a warning
185-
// to avoid permanently blocking the queue with an unshippable item.
186184
if n > self.size_limit {
187-
warn!(node = %self.label, block = %b.cert().data().num(), size = %n, limit = %self.size_limit, "block exceeds max transaction size; dropping");
185+
error!(
186+
node = %self.label,
187+
block = %b.cert().data().num(),
188+
size = %n,
189+
limit = %self.size_limit,
190+
"block exceeds max transaction size; dropping"
191+
);
188192
continue;
189193
}
190194
if size + n <= self.size_limit {
191195
size += n;
192196
transaction.push(b)
193197
} else {
194-
// Re-queue the block to avoid dropping it when current transaction is full.
195198
outbox.push_front(b);
196199
break;
197200
}

0 commit comments

Comments
 (0)