From a7153e08b4b98983616f33afbcf158b6af3d5f0e Mon Sep 17 00:00:00 2001 From: roks0n Date: Thu, 23 May 2019 19:02:36 +0200 Subject: [PATCH] 2.4.0-next.6 compatiblity --- src/crawler.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/crawler.js b/src/crawler.js index e4f7f8f..98fe4ba 100644 --- a/src/crawler.js +++ b/src/crawler.js @@ -76,7 +76,7 @@ class Crawler { } if (!this.peers.get(peer.ip)) { - this.peers.add(peer.ip, peer.port) + this.peers.add(peer.ip, peer.ports.p2p) } }) @@ -120,11 +120,11 @@ class Crawler { return reject(new Error(err)) } this.heights.push({ - height: response.data.header.height, - id: response.data.header.id + height: response.data.state.header.height, + id: response.data.state.header.id }) - this.nodes[peer.ip].height = response.data.header.height - this.nodes[peer.ip].id = response.data.header.id + this.nodes[peer.ip].height = response.data.state.header.height + this.nodes[peer.ip].id = response.data.state.header.id return resolve() } )