-
-
Notifications
You must be signed in to change notification settings - Fork 16
Readjusting the difficulty dynamically using PID #52
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
Closed
anshulchikhale30-p
wants to merge
19
commits into
StabilityNexus:main
from
anshulchikhale30-p:Difficulty/adjust
Closed
Changes from 16 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
15542b8
fixed difficulty target check in proof of work mining function
anshulchikhale30-p c1f61f9
Update minichain/pow.py
anshulchikhale30-p 8ecc46d
Update main.py
anshulchikhale30-p 48a2943
Update main.py
anshulchikhale30-p e7c9879
Update chain.py
anshulchikhale30-p 5d64086
Update difficulty.py
anshulchikhale30-p 96aa5cb
Update pow.py
anshulchikhale30-p 6e3b6b6
Merge branch 'main' into Difficulty/adjust
anshulchikhale30-p 4f1b92b
Update minichain/chain.py
anshulchikhale30-p b206d82
Update main.py
anshulchikhale30-p 67a5b82
Update chain.py
anshulchikhale30-p b1377d2
Update minichain/chain.py
anshulchikhale30-p 1fb37ae
Update main.py
anshulchikhale30-p 560a82d
Update pow.py
anshulchikhale30-p cd7c8d9
Update main.py
anshulchikhale30-p 0a2d556
Update main.py
anshulchikhale30-p 55f07b9
Merge branch 'main' into Difficulty/adjust
anshulchikhale30-p a17cefc
Update difficulty.py
anshulchikhale30-p 6a9e9c8
Update main.py
anshulchikhale30-p File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
In main.py, we only need to pass chain.difficulty into the Block constructor and mine_block() inside the mine_and_process_block function. We don't need the automated run_demo() loop, please keep
main.py interactive and preserve the persistence.py we added
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.
done
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.
@anshulchikhale30-p the testnet demo heading is still there and in many other places as well there are duplicate functions I'll suggest closing this pr and open a new one making only specific changes to main.py as because of merge conflicts a lot of functions have been entered twice and even you have changed the helpbox for no reason not at all required so instead of fixing those will bring more noise to the code I'll suggest opening a new pr with minimal pid specific changes