Skip to content
This repository has been archived by the owner on Nov 6, 2022. It is now read-only.

Commit

Permalink
Merge pull request #28 from OffchainLabs/gzeoneth-patch-2
Browse files Browse the repository at this point in the history
Fix retryable buffer not triming
  • Loading branch information
rachel-bousfield authored Apr 20, 2022
2 parents aaed2b6 + 2506de4 commit 93326c5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion arb_os/arbos-upgrade.mexe

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion arb_os/arbos.mexe

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions arb_os/retrybuffer.mini
Original file line number Diff line number Diff line change
Expand Up @@ -148,13 +148,13 @@ view write throw func retryBuffer_trimOne(rbuf: RetryBuffer) -> option<RetryBuff
let qitem = unsafecast<RetryQueueItem>(rawQitem);
let currentTimestamp = inbox_currentTimestamp();
if qitem.checkTime < currentTimestamp {
set rbuf.fifo = uq;
if let Some(rtx) = rbuf.byTxId[qitem.txId] {
if rtx.expiryTime < currentTimestamp {
rbuf = retryBuffer_delete(rbuf, qitem.txId, true)?;
}
set rbuf.fifo = uq;
ret = Some(rbuf);
}
ret = Some(rbuf);
}
}
ret
Expand Down
2 changes: 1 addition & 1 deletion arb_os/upgrade.json

Large diffs are not rendered by default.

0 comments on commit 93326c5

Please sign in to comment.