public boolean isWatchedScript(Script script){
  lock.lock();
  try {
    return watchedScripts.contains(script);
  }
  finally {
    lock.unlock();
  }
}

public boolean isWatchedScript ( Script script ) { lock . lock ( ) ; try { return watchedScripts . contains ( script ) ; } finally { lock . unlock ( ) ; } }
returns true if this wallet is watching transactions for outputs with the script .
