Skip to content

Commit

Permalink
fix: bug #3022, off-by-one in slog deliveryNum
Browse files Browse the repository at this point in the history
  • Loading branch information
FUDCo committed May 11, 2021
1 parent d14fa1e commit 620dcb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/SwingSet/src/kernel/slogger.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,13 +143,13 @@ export function makeSlogger(slogCallbacks, writeObj) {
crankNum = newCrankNum;
const when = { crankNum, vatID, deliveryNum };
write({ type: 'deliver', ...when, kd, vd });
deliveryNum += 1;
syscallNum = 0;

// dr: deliveryResult
function finish(dr) {
assertOldState(DELIVERY, 'delivery-finish called twice?');
write({ type: 'deliver-result', ...when, dr });
deliveryNum += 1;
state = IDLE;
}
return harden(finish);
Expand Down

0 comments on commit 620dcb5

Please sign in to comment.