refacor blockchain handlers
This commit is contained in:
parent
1c5b59a263
commit
dd8fcaa1b1
5 changed files with 17 additions and 23 deletions
|
|
@ -163,7 +163,7 @@ Insight.prototype.subscribe = function(addresses) {
|
|||
};
|
||||
|
||||
Insight.prototype.getSubscriptions = function(addresses) {
|
||||
return Object.keys(this.subscribed);
|
||||
return this.subscribed;
|
||||
}
|
||||
|
||||
Insight.prototype.unsubscribe = function(addresses) {
|
||||
|
|
@ -178,7 +178,7 @@ Insight.prototype.unsubscribe = function(addresses) {
|
|||
};
|
||||
|
||||
Insight.prototype.unsubscribeAll = function() {
|
||||
this.unsubscribe(this.getSubscriptions());
|
||||
this.unsubscribe(Object.keys(this.subscribed));
|
||||
};
|
||||
|
||||
Insight.prototype.broadcast = function(rawtx, cb) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue