Update block immediately after adding a node to the chain

This commit is contained in:
maciejhirsz
2018-07-21 08:30:06 +02:00
parent ef95c3e507
commit 42e7010697
3 changed files with 13 additions and 11 deletions
+2
View File
@@ -45,6 +45,8 @@ export default class Chain {
node.events.on('block', () => this.updateBlock(node));
node.events.on('stats', () => this.feeds.broadcast(Feed.stats(node)));
node.events.on('location', (location) => this.feeds.broadcast(Feed.locatedNode(node, location)));
this.updateBlock(node);
}
public addFeed(feed: Feed) {