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 + notify miners with refreshed blocks #1907

Merged
merged 7 commits into from
Jun 17, 2024

Conversation

edmundnoble
Copy link
Contributor

@edmundnoble edmundnoble requested review from thoughtpolice, chessai and a user April 23, 2024 17:49
@edmundnoble edmundnoble changed the title I16a7fc2fed6c5e09e73cbcb704c81da41b7ffa3b Resumable newblock + notify miners with refreshed blocks Apr 23, 2024
thoughtpolice pushed a commit that referenced this pull request Apr 23, 2024
Github PR: #1907

Change-Id: I16a7fc2fed6c5e09e73cbcb704c81da41b7ffa3b
@edmundnoble edmundnoble force-pushed the I16a7fc2fed6c5e09e73cbcb704c81da41b7ffa3b branch from 22a8d90 to 28663a3 Compare April 23, 2024 23:01
thoughtpolice pushed a commit that referenced this pull request Apr 23, 2024
Github PR: #1907

Change-Id: I16a7fc2fed6c5e09e73cbcb704c81da41b7ffa3b
@edmundnoble edmundnoble force-pushed the I16a7fc2fed6c5e09e73cbcb704c81da41b7ffa3b branch from 28663a3 to ddd739d Compare April 23, 2024 23:20
edmundnoble added a commit that referenced this pull request Apr 24, 2024
Github PR: #1907

Change-Id: I16a7fc2fed6c5e09e73cbcb704c81da41b7ffa3b
@edmundnoble edmundnoble force-pushed the I16a7fc2fed6c5e09e73cbcb704c81da41b7ffa3b branch from ddd739d to 693dce5 Compare April 24, 2024 01:01
edmundnoble added a commit that referenced this pull request Apr 24, 2024
Github PR: #1907

Change-Id: I16a7fc2fed6c5e09e73cbcb704c81da41b7ffa3b
@edmundnoble edmundnoble force-pushed the I16a7fc2fed6c5e09e73cbcb704c81da41b7ffa3b branch from 693dce5 to a3422fe Compare April 24, 2024 01:41
thoughtpolice pushed a commit that referenced this pull request Apr 30, 2024
Github PR: #1907

Change-Id: I16a7fc2fed6c5e09e73cbcb704c81da41b7ffa3b
thoughtpolice pushed a commit that referenced this pull request May 1, 2024
Github PR: #1907

Change-Id: I16a7fc2fed6c5e09e73cbcb704c81da41b7ffa3b
thoughtpolice pushed a commit that referenced this pull request May 1, 2024
Github PR: #1907

Change-Id: I16a7fc2fed6c5e09e73cbcb704c81da41b7ffa3b
thoughtpolice pushed a commit that referenced this pull request May 1, 2024
Github PR: #1907

Change-Id: I16a7fc2fed6c5e09e73cbcb704c81da41b7ffa3b
thoughtpolice pushed a commit that referenced this pull request May 1, 2024
Github PR: #1907

Change-Id: I16a7fc2fed6c5e09e73cbcb704c81da41b7ffa3b
@edmundnoble edmundnoble force-pushed the I16a7fc2fed6c5e09e73cbcb704c81da41b7ffa3b branch from a3422fe to 793cac9 Compare May 31, 2024 19:17
edmundnoble added a commit that referenced this pull request May 31, 2024
Github PR: #1907

Change-Id: I16a7fc2fed6c5e09e73cbcb704c81da41b7ffa3b
@edmundnoble edmundnoble force-pushed the I16a7fc2fed6c5e09e73cbcb704c81da41b7ffa3b branch from 793cac9 to 12146fe Compare May 31, 2024 19:51
edmundnoble added a commit that referenced this pull request Jun 14, 2024
Github PR: #1907

Change-Id: I16a7fc2fed6c5e09e73cbcb704c81da41b7ffa3b
@edmundnoble edmundnoble force-pushed the I16a7fc2fed6c5e09e73cbcb704c81da41b7ffa3b branch from 12146fe to e18931f Compare June 14, 2024 20:15
edmundnoble added a commit that referenced this pull request Jun 14, 2024
Github PR: #1907

Change-Id: I16a7fc2fed6c5e09e73cbcb704c81da41b7ffa3b
@edmundnoble edmundnoble force-pushed the I16a7fc2fed6c5e09e73cbcb704c81da41b7ffa3b branch from e18931f to 0c49a37 Compare June 14, 2024 20:15
chessai
chessai previously approved these changes Jun 14, 2024
@chessai chessai enabled auto-merge June 14, 2024 20:18
@chessai chessai added this pull request to the merge queue Jun 14, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to a conflict with the base branch Jun 14, 2024
@edmundnoble edmundnoble force-pushed the I16a7fc2fed6c5e09e73cbcb704c81da41b7ffa3b branch from aab5a98 to 878d64b Compare June 14, 2024 21:11
@edmundnoble edmundnoble enabled auto-merge June 14, 2024 21:11
@edmundnoble edmundnoble added this pull request to the merge queue Jun 17, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to a conflict with the base branch Jun 17, 2024
@edmundnoble edmundnoble added this pull request to the merge queue Jun 17, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to a conflict with the base branch Jun 17, 2024
… missing

This change makes readFrom return NoHistory when the target parent is missing.

Test plan: just our existing tests. 

Github PR: #1906

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
Github PR: #1907

Change-Id: I16a7fc2fed6c5e09e73cbcb704c81da41b7ffa3b
@edmundnoble edmundnoble force-pushed the I16a7fc2fed6c5e09e73cbcb704c81da41b7ffa3b branch from 878d64b to d0bb915 Compare June 17, 2024 16:13
@edmundnoble edmundnoble enabled auto-merge June 17, 2024 16:14
chessai
chessai previously approved these changes Jun 17, 2024
@edmundnoble edmundnoble added this pull request to the merge queue Jun 17, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to a conflict with the base branch Jun 17, 2024
Change-Id: Ia9a721c1bbc09ca5612676c6fd16c88750f6de78
@edmundnoble edmundnoble force-pushed the I16a7fc2fed6c5e09e73cbcb704c81da41b7ffa3b branch from d0bb915 to ebc0e09 Compare June 17, 2024 18:07
@edmundnoble edmundnoble enabled auto-merge June 17, 2024 18:07
chessai
chessai previously approved these changes Jun 17, 2024
chessai and others added 2 commits June 17, 2024 14:14
Change-Id: Ib1604f81a9e7f2f8542f28e0c467f417fcd00cc3
… one

Change-Id: I7690e0270a51380a556304f4f6acd68bed4afde6
@edmundnoble edmundnoble force-pushed the I16a7fc2fed6c5e09e73cbcb704c81da41b7ffa3b branch from ebc0e09 to 3d62826 Compare June 17, 2024 18:14
@edmundnoble edmundnoble added this pull request to the merge queue Jun 17, 2024
github-merge-queue bot pushed a commit that referenced this pull request Jun 17, 2024
Github PR: #1907

Change-Id: I16a7fc2fed6c5e09e73cbcb704c81da41b7ffa3b
Merged via the queue into master with commit 0c54b73 Jun 17, 2024
20 of 21 checks passed
@edmundnoble edmundnoble deleted the I16a7fc2fed6c5e09e73cbcb704c81da41b7ffa3b branch June 17, 2024 18:50
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.

2 participants