CHIA-3566: plot_sync v2 metadata via capability negotiation#20989
Draft
jack60612 wants to merge 1 commit into
Draft
CHIA-3566: plot_sync v2 metadata via capability negotiation#20989jack60612 wants to merge 1 commit into
jack60612 wants to merge 1 commit into
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Capability.PLOT_V2_METADATAso farmer and harvester negotiate full v2 plot metadata during plot sync.PlotV2/PlotSyncPlotListV2andplot_sync_loaded_v2for peers that both support the capability.PlotRecordwhile keeping legacyPlotSyncPlotListfor mixed-version deployments.Test plan
tools/pytest chia/_tests/plot_sync/ -n0tools/pytest chia/_tests/util/test_network_protocol_test.py -n0PLOT_V2_METADATAon a devnet pairplot_sync_loadedwhen capability is absent