Handle too many validators properly (#151)

* Revert debug flag
* Remove dead code
* Disallow subscribing if too many validators
This commit is contained in:
Michael Müller
2019-05-28 10:24:41 +02:00
committed by Maciej Hirsz
parent 7add77137a
commit ce9538485a
4 changed files with 15 additions and 28 deletions
-17
View File
@@ -47,23 +47,6 @@ export default class Aggregator {
}
});
feed.events.on('subscribe-consensus-info', (label: Types.ChainLabel) => {
const chain = this.chains.get(label);
if (chain) {
feed.sendMessage(Feed.subscribedTo(label));
chain.addFeed(feed);
}
});
feed.events.on('unsubscribe-consensus-info', (label: Types.ChainLabel) => {
const chain = this.chains.get(label);
if (chain) {
chain.removeFeed(feed);
feed.sendMessage(Feed.unsubscribedFrom(label));
}
});
}
public getExistingChain(label: Types.ChainLabel) : Maybe<Chain> {