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

fix: temporarily limit dex values to 60 bits #2561

Merged
merged 6 commits into from
May 15, 2023
Merged

fix: temporarily limit dex values to 60 bits #2561

merged 6 commits into from
May 15, 2023

Conversation

erwanor
Copy link
Member

@erwanor erwanor commented May 14, 2023

Closes #2560, the diff is large because we're regenerating testnet allocations but each individual commit should consist of a relevant subtask.

@hdevalence
Copy link
Member

Could we leave the existing check as-is, and have a dedicated code path for the temporary restrictions? Then when it's time to remove, we can just delete the temporary check in isolation — in the course of fixing the underlying issue we might determine, for instance, that we needed some restriction on the bitsize, and it'd be cleaner if we could write it separately from the checks we intend to remove.

@erwanor erwanor force-pushed the tmp_60bit_patch branch from 9cbf9fb to c3a88a7 Compare May 14, 2023 19:38
@erwanor erwanor temporarily deployed to smoke-test May 14, 2023 20:17 — with GitHub Actions Inactive
@@ -2,18 +2,23 @@

set -euo pipefail

PREVIOUS_TESTNET_DIRECTORY=$(find . -mindepth 1 -type d | tail -n1)
echo "#####################################################"
PREVIOUS_TESTNET_DIRECTORY=$(find . -mindepth 1 -type d | sort | tail -n1)
Copy link
Member Author

Choose a reason for hiding this comment

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

The change is here, I've added a sort.

@erwanor erwanor force-pushed the tmp_60bit_patch branch from 8945bc8 to 66cefff Compare May 14, 2023 23:56
@erwanor erwanor temporarily deployed to smoke-test May 14, 2023 23:56 — with GitHub Actions Inactive
@erwanor erwanor merged commit e6149bf into main May 15, 2023
@erwanor erwanor deleted the tmp_60bit_patch branch May 15, 2023 00:17
@cratelyn cratelyn added the A-dex Area: Relates to the dex label Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-dex Area: Relates to the dex
Projects
No open projects
Status: Testnet 52: Amalthe
Development

Successfully merging this pull request may close these issues.

Temporarily avoid large values in DEX calculations
3 participants