configure static method

void configure(
  1. StrictConfig config
)

set the checks from config and forget the old warnings

Implementation

static void configure(StrictConfig config) {
  enabled = config.enabled;
  _limit = config.blockLimit;
  _routes.clear();
  _hashSites.clear();
  // a running watchdog must follow the new config
  if (_watchdog != null) {
    stopWatchdog();
    startWatchdog();
  }
}