darkwallet/darkwallet

View on GitHub
src/js/backend/workers/stealth.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function processPocketStealth has 37 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function processPocketStealth(stealthArray, pocketIndex, scanKey, spendKey, versions, oldMode) {
      var matches = [];

      // Stealth cache can't have more items than stealth array otherwise is invalid
      // This is because stealth array is accumulating items till it refreshes after 100 blocks (obelisk quirk)
Severity: Minor
Found in src/js/backend/workers/stealth.js - About 1 hr to fix

    Function processPocketStealth has 6 arguments (exceeds 4 allowed). Consider refactoring.
    Open

      function processPocketStealth(stealthArray, pocketIndex, scanKey, spendKey, versions, oldMode) {
    Severity: Minor
    Found in src/js/backend/workers/stealth.js - About 45 mins to fix

      There are no issues that match your filters.

      Category
      Status