MCPcopy Create free account
hub / github.com/EvoMap/evolver / _resetStateForTests

Function _resetStateForTests

src/gep/validator/stakeBootstrap.js:329–339  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

327// the lazy-load latch so the next call re-reads from disk (or sees a
328// clean slate if the caller removed the file themselves).
329function _resetStateForTests() {
330 _state = {
331 nextAttemptAt: 0,
332 transientFailures: 0,
333 fundsFailures: 0,
334 lastSuccessAt: 0,
335 disabledUntilRestart: false,
336 };
337 _stateLoaded = false;
338 try { fs.unlinkSync(_stateFile()); } catch (_) {}
339}
340
341function _getStateForTests() {
342 return Object.assign({}, _state);

Callers

nothing calls this directly

Calls 1

_stateFileFunction · 0.70

Tested by

no test coverage detected