Skip to content

Conversation

@arvidn
Copy link
Contributor

@arvidn arvidn commented Nov 26, 2025

Purpose:

This PR adds support for v2 plots to chia-blockchain, activating at the hard fork height (which is still set to a place-holder).

These changes are best reviewed one commit at a time.

The main updates can be summarized as:

  • add support for creating v2 plots in BlockTools (the core of the simulator)
  • add two new ConsensusMode enum values to the test fixture. This will make many of our tests run two more times covering the v1 phase-out and v2-only chains.
  • fixing tests to work with v2 plots. The main issue is that v2 plots don't support a pool key, so pool rewards can't be redirected. Pool rewards can only be paid to a puzzle embedded in the plot itself. Many tests redirect both the farmer reward and the pool reward, so the change is to rely only on the farmer reward, at least after the hard fork activation.
  • disabling tests that depend on the pool reward redirect, to be fixed later. These are also marked with the todo_v2_plots keyword, to make them easy to find and identify.

Current Behavior:

  • We don't have any tests covering the 3.0 hard fork

New Behavior:

  • We run most existing tests on the 3.0 hard fork as well

@arvidn arvidn added the Changed Required label for PR that categorizes merge commit message as "Changed" for changelog label Nov 26, 2025
@arvidn arvidn changed the title Pos2 simulations proof-of-space v2 support Nov 26, 2025
@arvidn arvidn force-pushed the pos2-simulations branch 3 times, most recently from 1e6d6bc to 686e568 Compare December 2, 2025 14:34
@github-actions github-actions bot added the merge_conflict Branch has conflicts that prevent merge to main label Dec 2, 2025
@arvidn arvidn force-pushed the pos2-simulations branch 2 times, most recently from 5513836 to 3410782 Compare December 3, 2025 02:01
@github-actions github-actions bot removed the merge_conflict Branch has conflicts that prevent merge to main label Dec 3, 2025
@github-actions github-actions bot added the merge_conflict Branch has conflicts that prevent merge to main label Dec 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Changed Required label for PR that categorizes merge commit message as "Changed" for changelog merge_conflict Branch has conflicts that prevent merge to main

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants