get isFullySynced() {
        var lastWithActivity = 0;
        var finalGap = -1;
        for (var a in this.addresses) {
            var ak = this.addresses[a];
            if (ak.totalRecv > 0) {
                lastWithActivity = a;
            }
            if ((ak.totalRecv == 0 && ak.state == 'sync') || ak.state == 'err') {
                finalGap = a - lastWithActivity + 1;
            }
        }
        return finalGap >= this.gap;
    }
// checks if there are at least $gap addresses synced but with out balance after the last address with balance
checks if there are at least $gap addresses synced but with out balance after the last address with balance
checks if there are at least $gap addresses synced but with out balance after the last address with balance
get isFullySynced() {
        var lastWithActivity = 0;
        var finalGap = -1;
        for (var a in this.addresses) {
            var ak = this.addresses[a];
            if (ak.totalRecv > 0) {
                lastWithActivity = a;
            }
            if ((ak.totalRecv == 0 && ak.state == 'sync') || ak.state == 'err') {
                finalGap = a - lastWithActivity + 1;
            }
        }
        return finalGap >= this.gap;
    }
get isFullySynced ( ) { var lastWithActivity = 0 ; var finalGap = - 1 ; for ( var a in this . addresses ) { var ak = this . addresses [ a ] ; if ( ak . totalRecv > 0 ) { lastWithActivity = a ; } if ( ( ak . totalRecv == 0 && ak . state == 'sync' ) || ak . state == 'err' ) { finalGap = a - lastWithActivity + 1 ; } } return finalGap >= this . gap ; }
checks if there are at least $gap addresses synced but with out balance after the last address with balance
checks if there are at least $gap addresses synced but with out balance after the last address with balance