ethereum/mist

View on GitHub
modules/core/nodes/actions.js

Summary

Maintainability
A
1 hr
Test Coverage

Function setActiveNode has 39 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function setActiveNode() {
  return (dispatch, getState) => {
    // Ensure remote is active if local node is 15 or more blocks behind remote or local node has no peers.
    const { active, network, local, remote } = getState().nodes;

Severity: Minor
Found in modules/core/nodes/actions.js - About 1 hr to fix

    Parsing error: 'import' and 'export' may appear only with 'sourceType: module'
    Open

    import ethereumNodeRemote from '../../ethereumNodeRemote';
    Severity: Minor
    Found in modules/core/nodes/actions.js by eslint

    For more information visit Source: http://eslint.org/docs/rules/

    There are no issues that match your filters.

    Category
    Status