addIfAbsent is atomic here because there is no await between its check
and its write, which holds in one JavaScript process and nowhere else. Two
processes with one of these each accept every proof twice. Past one
process, use RedisReplayStore or PostgresReplayStore.
A replay store for one process, and for tests.
addIfAbsentis atomic here because there is noawaitbetween its check and its write, which holds in one JavaScript process and nowhere else. Two processes with one of these each accept every proof twice. Past one process, useRedisReplayStoreorPostgresReplayStore.