Skip to content

Commit

Permalink
Small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-Werner committed May 30, 2018
1 parent 07617c7 commit d773e0c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,15 @@ If it doesn't exist, it will create it, with basic task to connect to dashd.

Some plugins are available :

- Insight-API :
- Insight-UI (require insight-API) :
- Insight-API : `./bin/dashcore-node addservice @dashevo/insight-api
- Insight-UI : `./bin/dashcore-node addservice @dashevo/insight-ui`

You also might want to add these index to your dash.conf file :
```
-addressindex
-timestampindex
-spentindex
```

### As a library

Expand Down
9 changes: 5 additions & 4 deletions lib/services/dashd.js
Original file line number Diff line number Diff line change
Expand Up @@ -261,10 +261,11 @@ Dash.prototype.subscribeAddress = function(emitter, addresses) {
self.subscriptions.address[addressStr] = [emitter];
}
}

for(var i = 0; i < addresses.length; i++) {
if (dashcore.Address.isValid(addresses[i], this.node.network)) {
addAddress(addresses[i]);
if(addresses){
for(var i = 0; i < addresses.length; i++) {
if (dashcore.Address.isValid(addresses[i], this.node.network)) {
addAddress(addresses[i]);
}
}
}

Expand Down

0 comments on commit d773e0c

Please sign in to comment.