modules/core/nodes/actions.js
Function setActiveNode
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
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;
Parsing error: 'import' and 'export' may appear only with 'sourceType: module' Open
Open
import ethereumNodeRemote from '../../ethereumNodeRemote';
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/