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

[Fix] Store the aborted solution IDs in blocks #2284

Merged
merged 24 commits into from
Jan 20, 2024

Conversation

raychu86
Copy link
Contributor

@raychu86 raychu86 commented Jan 9, 2024

Motivation

Similar to how we are storing the aborted transaction ids in each block, we must do the same for the aborted solutions ids. This will allow nodes that are syncing up via the BFT protocol to accurately place and handle the otherwise missing solution transmissions.

Each block will now have a new aborted_solution_ids field that stores a list of the aborted solution ids (Vec<PuzzleCommitment<N>>).

In addition, the BlockStorage now has 2 additional maps to track these aborted solutions:

  1. AbortedSolutionIDsMap - block hash to [aborted solution ID]
  2. AbortedPuzzleCommitmentsMap - aborted puzzle commitment to block height

@raychu86 raychu86 changed the title Store the aborted solutions IDs in blocks Store the aborted solution IDs in blocks Jan 9, 2024
@raychu86 raychu86 marked this pull request as ready for review January 18, 2024 23:02
@howardwu howardwu merged commit 4a2405e into mainnet Jan 20, 2024
58 of 78 checks passed
@howardwu howardwu deleted the feat/aborted-solution-ids branch January 20, 2024 20:06
@raychu86 raychu86 changed the title Store the aborted solution IDs in blocks [Fix] Store the aborted solution IDs in blocks Feb 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants