src/js/backend/services/wallet.js
Function WalletService
has 364 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function WalletService(core) {
var keyRing = new IdentityKeyRing();
var self = this;
this.name = 'wallet';
var heightTimeout;
File wallet.js
has 371 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* @fileOverview Background service running for the wallet
*/
'use strict';
Function mixTransaction
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.mixTransaction = function(newTx, metadata, password, callback) {
var identity = self.getCurrentIdentity();
var task = {tx: newTx.toHex(),
state: 'announce',
total: metadata.total,
Function notifyRow
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var notifyRow = function(walletAddress, row, height) {
var identity = core.getCurrentIdentity();
var title;
var value = row.total;
Function createIdentity
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
this.createIdentity = function(name, network, secret, password, callback) {
Function signTransaction
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
this.signTransaction = function(newTx, metadata, password, callback, broadcast) {