chore: remove peer-info usage on topology (#42)

* chore: remove peer-info usage on topology

BREAKING CHANGE: topology api now uses peer-id instead of peer-info
This commit is contained in:
Vasco Santos
2020-04-17 17:23:31 +02:00
committed by Jacob Heun
parent 87e2e89791
commit a55c7c454a
7 changed files with 74 additions and 56 deletions

View File

@ -7,6 +7,10 @@ class MockPeerStore extends EventEmitter {
super()
this.peers = peers
}
get (peerId) {
return this.peers.get(peerId.toB58String())
}
}
module.exports = MockPeerStore