Skip to content

CHIA-3566: plot_sync v2 metadata via capability negotiation#20989

Draft
jack60612 wants to merge 1 commit into
mainfrom
chia-3566-plot-sync-v2-metadata
Draft

CHIA-3566: plot_sync v2 metadata via capability negotiation#20989
jack60612 wants to merge 1 commit into
mainfrom
chia-3566-plot-sync-v2-metadata

Conversation

@jack60612

Copy link
Copy Markdown
Contributor

Summary

  • Add Capability.PLOT_V2_METADATA so farmer and harvester negotiate full v2 plot metadata during plot sync.
  • Introduce PlotV2 / PlotSyncPlotListV2 and plot_sync_loaded_v2 for peers that both support the capability.
  • Normalize plot data internally with PlotRecord while keeping legacy PlotSyncPlotList for mixed-version deployments.

Test plan

  • tools/pytest chia/_tests/plot_sync/ -n0
  • tools/pytest chia/_tests/util/test_network_protocol_test.py -n0
  • Verify farmer/harvester handshake advertises PLOT_V2_METADATA on a devnet pair
  • Confirm legacy harvester still syncs via plot_sync_loaded when capability is absent

Negotiate PLOT_V2_METADATA between farmer and harvester so plot sync can
carry full v2 PlotParam fields via PlotSyncPlotListV2 while preserving
legacy PlotSyncPlotList for mixed-version peers.

Co-authored-by: Cursor <cursoragent@cursor.com>
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