We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent adb8b14 commit 693a01bCopy full SHA for 693a01b
lib/p2p/Pool.ts
@@ -827,8 +827,10 @@ class Pool extends EventEmitter {
827
});
828
829
peer.on('pairDropped', (pairId) => {
830
- // drop all orders for trading pairs that are no longer supported
831
- this.emit('peer.pairDropped', peer.nodePubKey!, pairId);
+ // drop all orders for trading pairs that exist and are no longer supported
+ if (this.nodeState.pairs.includes(pairId)) {
832
+ this.emit('peer.pairDropped', peer.nodePubKey!, pairId);
833
+ }
834
835
836
peer.on('verifyPairs', () => {
0 commit comments