Skip to content

Commit ce88134

Browse files
authored
Merge branch 'main' into ak/integrate
2 parents b75abc3 + 090f0dd commit ce88134

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

timeboost-builder/src/submit.rs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,10 +181,21 @@ impl Sender {
181181
continue;
182182
}
183183
let n = minicbor::len(&b);
184-
if size + n < self.size_limit {
184+
if n > self.size_limit {
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+
);
192+
continue;
193+
}
194+
if size + n <= self.size_limit {
185195
size += n;
186196
transaction.push(b)
187197
} else {
198+
outbox.push_front(b);
188199
break;
189200
}
190201
}

0 commit comments

Comments
 (0)