Skip to content

Commit

Permalink
2.4.0-next.6 compatiblity
Browse files Browse the repository at this point in the history
  • Loading branch information
roks0n committed May 23, 2019
1 parent c344997 commit a7153e0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/crawler.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
})

Expand Down Expand Up @@ -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()
}
)
Expand Down

0 comments on commit a7153e0

Please sign in to comment.