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

Support for throttled PoW #45

Open
notlesh opened this issue Jul 14, 2023 · 2 comments
Open

Support for throttled PoW #45

notlesh opened this issue Jul 14, 2023 · 2 comments

Comments

@notlesh
Copy link
Contributor

notlesh commented Jul 14, 2023

The PoW is pretty rough on a laptop :)

A couple suggestions to mitigate this:

  • Ability to add some sleep() calls to throttle mining
  • dev mode could support a permanent difficulty of 0 so that only a single PoW hash has to be done. this would work well with manual or instant seal.
@JoshOrndorff
Copy link
Collaborator

For local testing you can use --instant-seal so that you don't need to mine at all.

@JoshOrndorff
Copy link
Collaborator

But instant-seal sucks because you need transactions. And I think it would be nice to not need an entirely separate consensus. I think throttled PoW is the route we should take.

It could have a special flag like --slow-mine or something. But I expect the more common usage would be to have it implied by --dev and a low initial difficulty.

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

No branches or pull requests

2 participants