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

Apply minimum exit time to regular exits #105

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

jagerman
Copy link
Member

@jagerman jagerman commented Nov 7, 2024

The same minimum 2 hour limit that applies to liquidation should apply to regular exits. See comments in oxen-io/oxen-core#1750 for more details.

This also extracts the substantially duplicate code between the public exit and liquidate with signature functions into a private function.

Edit: + requires a leave request has been made before allowing a regular, signed exit.

The same minimum 2 hour limit that applies to liquidation should apply
to regular exits.  See comments in
oxen-io/oxen-core#1750 for more details.
The signature verification code in these two functions is virtually
identical now (there was some slight optimization that had been applied
to one of these but not the other, but is functionally identical).
We should require that a leave request has been initiated
before accepting an exit with signature.
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.

1 participant