Time sequential Richese auctions
Verify and publish checkpoint container / container (push) Canceled after 0s
Verify and publish checkpoint container / container (push) Canceled after 0s
This commit is contained in:
1 parent
e7520e8679
commit
7fc6f1cd43
15 files changed
+692
-38
No files matched your search
+2
-1
@@ -699,7 +699,7 @@ async function readWorkerRoomSnapshot(code: string) {
|
||||
}
|
||||
}
|
||||
|
||||
/** One ordinary bid deadline through the existing trusted clock and room CAS.
|
||||
/** One sequential bid deadline through the existing trusted clock and room CAS.
|
||||
* A worker may wait once for at most ten seconds, then rereads all authority.
|
||||
* No durable alarm is claimed: a later authenticated read/action resumes a
|
||||
* persisted deadline after the process stops. Administrative revision changes
|
||||
@@ -719,6 +719,7 @@ export async function continueRoomAuctionClock(
|
||||
const now = clock.now();
|
||||
const next = advanceAuctionClock(current, now, controlEpoch);
|
||||
const nativeProgress = JSON.stringify(next.auction) !== JSON.stringify(current.auction) ||
|
||||
JSON.stringify(next.richeseAuction) !== JSON.stringify(current.richeseAuction) ||
|
||||
next.phase !== current.phase || next.turn !== current.turn;
|
||||
if (JSON.stringify(next) !== JSON.stringify(current)) {
|
||||
queueRoomBots(next, current, now);
|
||||
|
||||
Reference in new issue
Block a user