Skip to content

Commit

Permalink
remove devp2p changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jochem-brouwer committed Aug 14, 2024
1 parent ac426bd commit 0790c1c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion packages/devp2p/src/rlpx/peer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,6 @@ export class Peer {
this._disconnectWe = true
this._closed = true
setTimeout(() => this._socket.end(), 2000) // 2 sec * 1000
if (this._pingIntervalId !== null) clearInterval(this._pingIntervalId)
}

/**
Expand Down
2 changes: 2 additions & 0 deletions packages/devp2p/test/integration/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,8 @@ export function twoPeerMsgExchange(

export function destroyRLPXs(rlpxs: any) {
for (const rlpx of rlpxs) {
// FIXME: Call destroy() on dpt instance from the rlpx.destroy() method
rlpx._dpt.destroy()
rlpx.destroy()
}
}
Expand Down

0 comments on commit 0790c1c

Please sign in to comment.