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

Refactored rx-slow-hash.c to make fast PoW verification possible [release-v0.18] #8678

Merged

Conversation

SChernykh
Copy link
Contributor

See #8677

@SChernykh SChernykh force-pushed the new_rx_slow_hash_release branch 2 times, most recently from 3a726d1 to c97167a Compare December 13, 2022 12:55
- Straight-forward call interface: `void rx_slow_hash(const char *seedhash, const void *data, size_t length, char *result_hash)`
- Consensus chain seed hash is now updated by calling `rx_set_main_seedhash` whenever a block is added/removed or a reorg happens
- `rx_slow_hash` will compute correct hash no matter if `rx_set_main_seedhash` was called or not (the only difference is performance)
- New environment variable `MONERO_RANDOMX_FULL_MEM` to force use the full dataset for PoW verification (faster block verification)
- When dataset is used for PoW verification, dataset updates don't stall other threads (verification is done in light mode then)
- When mining is running, PoW checks now also use dataset for faster verification
@SChernykh SChernykh force-pushed the new_rx_slow_hash_release branch from c97167a to f698f2b Compare December 14, 2022 06:21
@luigi1111 luigi1111 merged commit 1d20b81 into monero-project:release-v0.18 Jan 11, 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.

2 participants