-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: disable raiden currencies w/out direct chan
This commit attempts to ensure that we have a direct channel with peers for raiden currencies before exchanging orders with that peer for any pairs involving that currency. When a peer advertises a trading pair, either via initial handshake or on a node state update, we check that we have a direct channel for any raiden currencies before activating advertised pairs. If the trading pair is not activated, then we do not send or accept orders for that pair with the peer. An existing timer with an interval of one minute is used for each peer to periodically check if inactive currencies and pairs can be activated by performing the same checks described above, including the direct channel check for raiden currencies. Closes #1027.
- Loading branch information
Showing
5 changed files
with
110 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters