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

Preparation to bump the RandomX dataset size to 4096MiB #610

Closed

Conversation

JamesPiechota
Copy link
Collaborator

@JamesPiechota JamesPiechota commented Aug 27, 2024

  1. Add a bunch of tests for the randomx nifs as well as the nif wrappers
  2. Remove a bunch of obsolete C code
  3. remove the reencrypt_legacy_composite NIF since we won't be able to do that across RandomX dataset sizes
  4. Add support for Light vs. Fast mode for all randomx NIFs
  5. Have the difference ar_mine_randomx modes handled via the state (e.g. non-debug vs. debug, light vs. fast). This will make it easier later when we add a 3rd mode (512MiB vs. 4096MiB)

@JamesPiechota JamesPiechota force-pushed the jp/randomx-dataset-20240826 branch 2 times, most recently from bb1a851 to ff6dd4c Compare September 2, 2024 22:20
@JamesPiechota JamesPiechota marked this pull request as ready for review September 4, 2024 18:15
@JamesPiechota JamesPiechota changed the title Jp/randomx dataset 20240826 Preparation to bump the RandomX dataset size to 4096MiB Sep 4, 2024
@@ -1,6 +1,6 @@
-module(ar_randomx_state).

-export([init/2, init/4, start/0, start_block_polling/0, reset/0, hash/2,
-export([init/2, init/4, start/0, start_block_polling/0, reset/0,
Copy link
Member

Choose a reason for hiding this comment

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

I would remove this module completely because we do not need it any more. The ar_randomx_state:get_key_block query in ar_http_iface_middleware is totally unnecessary and easy to remove too.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Sounds good! Can I do it in the next PR?

Copy link
Member

Choose a reason for hiding this comment

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

Off course

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