Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

auth,dex,dcrdex: anarchy setting #268

Merged
merged 4 commits into from
Apr 15, 2020
Merged

auth,dex,dcrdex: anarchy setting #268

merged 4 commits into from
Apr 15, 2020

Conversation

chappjc
Copy link
Member

@chappjc chappjc commented Apr 15, 2020

Probably temporary, but it helps a lot in testing.

server/auth/auth.go Outdated Show resolved Hide resolved
server/cmd/dcrdex/config.go Show resolved Hide resolved
chappjc added 2 commits April 15, 2020 13:38
On Penalize, the connection should stay open to handle active swaps, and
active orders if we allow that.

On failed Send or Request/RequestWithTimeout, call removeClient.
auth.storage.CloseAccount(client.acct.ID, rule)
client.conn.Banish() // May not want to do this. Leaving it for now.
auth.removeClient(client)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I noticed that this was the only removeClient, so on failed Send and Requests, I now call removeClient. However, we may wish to add the On method to the Link interface so that it is ultimately up to the WSLink if the connection is really dead. On the other hand, auth'd clients could stay in the AuthManager's clients map forever, but I don't like having it grow without bounds.

@chappjc chappjc merged commit bab6de4 into decred:master Apr 15, 2020
@chappjc chappjc deleted the no-penalty branch April 15, 2020 20:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants