LiskArchive / lisk-elements

⚙️ Library for sending Lisk transactions from the client or server
https://lisk.io/
GNU General Public License v3.0
250 stars 64 forks source link

Disconnect old peers, cleanup node and improve timeouts - Closes #1086 #1104

Closed jondubois closed 5 years ago

jondubois commented 5 years ago

What was the problem?

How did I fix it?

EDIT (after PR feedback)

How to test it?

npm run test:integration

Review checklist

shuse2 commented 5 years ago

@jondubois Also, it's failing on Jenkins with

@liskhq/lisk-p2p: test/unit/peer_discovery.ts(54,52): error TS2345: Argument of type 'P2PPeerInfo[]' is not assignable to parameter of type 'ReadonlyArray<P2PDiscoveredPeerInfo>'.

@liskhq/lisk-p2p:   Property 'version' is missing in type 'P2PPeerInfo' but required in type 'P2PDiscoveredPeerInfo'.