Skip to content

Commit

Permalink
Merge pull request deadlock-delegate#4 from roks0n/2.4.0-next.6
Browse files Browse the repository at this point in the history
2.4.0-next.6 compatibility
  • Loading branch information
roks0n authored May 23, 2019
2 parents f27a4c2 + a7153e0 commit 9bc81c2
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 9bc81c2

Please sign in to comment.