Commit f13901f
fix(engine): flush post-finalization receipts to receipt-root task
`receipt_tx` was dropped immediately after `execute_transactions`
returned, before `executor.finish()` ran. Any receipts appended during
finalization (e.g. system transaction receipts on BSC) were never sent
to the background receipt-root task, causing it to see fewer receipts
than expected and silently fail to compute the root.
Fix by carrying `last_sent_len` out of `execute_transactions`, running
`finish()` first, then flushing any remaining receipts before dropping
the sender — matching the pattern in the upstream develop branch.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 30bfb2b commit f13901f
2 files changed
Lines changed: 14 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1284 | 1284 | | |
1285 | 1285 | | |
1286 | 1286 | | |
1287 | | - | |
| 1287 | + | |
1288 | 1288 | | |
1289 | 1289 | | |
1290 | 1290 | | |
1291 | 1291 | | |
1292 | 1292 | | |
1293 | 1293 | | |
1294 | | - | |
1295 | 1294 | | |
1296 | 1295 | | |
1297 | 1296 | | |
| |||
1300 | 1299 | | |
1301 | 1300 | | |
1302 | 1301 | | |
| 1302 | + | |
| 1303 | + | |
| 1304 | + | |
| 1305 | + | |
| 1306 | + | |
| 1307 | + | |
| 1308 | + | |
| 1309 | + | |
| 1310 | + | |
| 1311 | + | |
1303 | 1312 | | |
1304 | 1313 | | |
1305 | 1314 | | |
| |||
1330 | 1339 | | |
1331 | 1340 | | |
1332 | 1341 | | |
1333 | | - | |
| 1342 | + | |
1334 | 1343 | | |
1335 | 1344 | | |
1336 | 1345 | | |
| |||
1392 | 1401 | | |
1393 | 1402 | | |
1394 | 1403 | | |
1395 | | - | |
| 1404 | + | |
1396 | 1405 | | |
1397 | 1406 | | |
1398 | 1407 | | |
| |||
0 commit comments