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

Add contract-utils binary #850

Merged
5 commits merged into from
Dec 18, 2023
Merged

Add contract-utils binary #850

5 commits merged into from
Dec 18, 2023

Conversation

jkilpatr
Copy link
Member

This patch changes the existing migration util into a more generic utility for interacting with the exit database smart contract.

This patch changes the existing migration util into a more generic
utility for interacting with the exit database smart contract.
@jkilpatr jkilpatr force-pushed the jkilpatr/add-exit-register-tool branch from 1ff76bc to 93ec88c Compare December 12, 2023 20:54
This commit modifies the way the exit handles users list queries to be
in line with the operating philosophy we usually use. Which is to crash
quickly if the initial configuration or state is not correct. But one
running the system should remain running if at all possible.

Previously we tried to query the users list for 5 minutes before
crashing. This is kinda the worst of both worlds, it won't be caught by
a deployment script just checking for quick crashes and it also takes
down the application any time we lose connection to the full node for
more than 5 minutes

The new design ensures that an already running exit will ride through,
and that the program wil crash quickly if not configured properly on
startup.
this helps handle strange edge cases where the router is configured to
speak to a specific exit (therefore trusting it implicitly)
This patch expands the internal regions representation to represent all
two letter ISO country codes, allowing us to drop raw strings in the
config and ensure that region locking works properly on the new exit
registration contract.
@jkilpatr jkilpatr force-pushed the jkilpatr/add-exit-register-tool branch from 0cbefa3 to a45a0b6 Compare December 18, 2023 12:14
@jkilpatr jkilpatr closed this pull request by merging all changes into master in a45a0b6 Dec 18, 2023
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