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

Make batch size configurable for miner #894

Merged
merged 3 commits into from
Jan 14, 2022

Conversation

kernel32uiuc
Copy link
Contributor

Summary

Playing with batchSize can impact the hash rate. A faster processor can benefit from a higher batchSize. Making it configurable can give more flexibility to miners.

Testing Plan

Manually tested via

./ironfish config:set minerBatchSize <newBatchSize> 
./ironfish config:show

When I set a very low batch size, I noticed that the hash rate significantly slows down.

Breaking Change

Is this a breaking change? If yes, add notes below on why this is breaking and
what additional work is required, if any.

[ ] Yes
[ X] No

@kernel32uiuc kernel32uiuc requested a review from a team as a code owner January 14, 2022 03:15
@dguenther
Copy link
Member

Nice addition! I'll do some testing on this then review/merge 🚢

@NullSoldier
Copy link
Contributor

Tested locally, this works.

@NullSoldier NullSoldier changed the base branch from master to staging January 14, 2022 21:31
@NullSoldier NullSoldier merged commit dbb501c into iron-fish:staging Jan 14, 2022
NullSoldier pushed a commit that referenced this pull request Jan 15, 2022
* Make batch size configurable for miner

* Default batch size as 10000

* Fix lint errors
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.

None yet

3 participants