-
Notifications
You must be signed in to change notification settings - Fork 214
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
Boost mining speeds #2539
Boost mining speeds #2539
Conversation
87ab5f8
to
ff16b65
Compare
0832359
to
e4f0cbf
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please see my comments about the config files. I know it is a bit confusing, and on our TODO list to fix/consolidate the config files. This is the current state:
tari_sample.toml
has minimal settings for all Tari executables, but is not really used in our official releaseswindows.toml
is used to create the Windows installer, and apart from the path separators identical totari_config_example.toml
tari_config_example.toml
is used to create the OSX and Ubuntu installation tarbals, and apart from the path separators identical towindows.toml
Improved mining restart logic, to start new threads in parallel with closing down previous threads. Implement own sha3 hashing logic, which caches hash product before nonce, accounting for timestamp changes too. Gives boost on mining +50%. Decrease dependency on tari_core Improved configs by @hansieodendaal comments.
e4f0cbf
to
cbd0f0c
Compare
Cool, thank you, this is clear now, I definitely put settings in a wrong file. Should be fixed now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested and working great!
Description
This PR improves miner application:
Motivation and Context
This should improve mining speeds as well as lower down wasted mining power.
How Has This Been Tested?
Run locally with 2 disconnected nodes and a wallet.
Types of changes
Checklist:
development
branch.cargo-fmt --all
before pushing.cargo test
successfully before submitting my PR.