Skip to content

Commit 0b1b2cc

Browse files
committed
Disable witness cache by default
1 parent 8f39197 commit 0b1b2cc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/wasm/src/services/credential/bbs-revocation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const trimHexID = id => {
2323
};
2424

2525
const blockchainCache = new Map<string, {data: any; timestamp: number}>();
26-
let WITNESS_CACHE_TTL = 120_000; // 2 minutes
26+
let WITNESS_CACHE_TTL = 0; // Disabled — accumulator can change between cache time and verification
2727

2828
export const getWitnessCacheTTL = () => WITNESS_CACHE_TTL;
2929
export const setWitnessCacheTTL = (ms: number) => { WITNESS_CACHE_TTL = ms; };

0 commit comments

Comments
 (0)