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

Resumable newblock in mining #1891

Closed
wants to merge 3 commits into from

Conversation

edmundnoble
Copy link
Contributor

Makes the mining loop use ContinueBlock to periodically "refresh" blocks,
ensuring that they use all of the transactions in the mempool if possible.

Test plan will be to put this on a testnet mining node.

https://gerrit.aseipp.dev/q/I25e1ab240e4522d7e56812ff170d0aa849125abe

@edmundnoble edmundnoble requested review from thoughtpolice, chessai and a user April 3, 2024 17:19
@edmundnoble edmundnoble changed the title I25e1ab240e4522d7e56812ff170d0aa849125abe Resumable newblock in mining Apr 3, 2024
@edmundnoble edmundnoble force-pushed the I25e1ab240e4522d7e56812ff170d0aa849125abe branch from a2e1f2a to 1bda787 Compare April 4, 2024 21:47
This change makes readFrom return Nothing when the target parent is missing.

Test plan: just our existing tests. 


Change-Id: I67fd68ed09707c9bff00b0cf7906e026974a2343
This adds a new pact request called ContinueBlock to do this resumption
and also adds an option to NewBlock which allows creating empty blocks;
as well, the state involved in blocks in progress is encapsulated in a 
new BlockInProgress type.

Test plan is a new test that checks that a block created via NewBlock
is identical to a block created via a combination of NewBlock and
ContinueBlock.

Change-Id: Id0e6f9ac29cbef4e1b029db5be7aee0b80c2f9c8
Makes the mining loop use ContinueBlock to periodically "refresh" blocks,
ensuring that they use all of the transactions in the mempool if possible.

Test plan will be to put this on a testnet mining node.

Change-Id: I25e1ab240e4522d7e56812ff170d0aa849125abe
@edmundnoble edmundnoble force-pushed the I25e1ab240e4522d7e56812ff170d0aa849125abe branch from 1bda787 to 1ba9af8 Compare April 5, 2024 18:30
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.

1 participant