Skip to content

fix: disable legacy spork P2P on mainnet#3

Draft
thepastaclaw wants to merge 1 commit intoknst:refactor-spork-net-processing-v2from
thepastaclaw:fix-pr7303-disable-mainnet-spork-p2p
Draft

fix: disable legacy spork P2P on mainnet#3
thepastaclaw wants to merge 1 commit intoknst:refactor-spork-net-processing-v2from
thepastaclaw:fix-pr7303-disable-mainnet-spork-p2p

Conversation

@thepastaclaw
Copy link
Copy Markdown

Follow-up for dashpay#7303

Summary

Follow-up for review feedback on dashpay#7303.

This disables the legacy P2P spork flow on mainnet now that mainnet sporks
are hardcoded/hardened:

  • skip sync-time GETSPORKS requests on mainnet
  • ignore mainnet SPORK and GETSPORKS messages without serving cached state
  • treat mainnet MSG_SPORK inventory as already-have and skip requesting it
  • avoid serving MSG_SPORK over GETDATA
  • avoid relaying spork inventory on mainnet
  • preserve existing non-mainnet spork P2P behavior

Validation

  • git diff --check
  • Code review gate passed with recommendation: ship
  • Attempted src/test/test_dash --run_test=spork_tests; skipped because this
    worktree does not have a built src/test/test_dash binary

@thepastaclaw
Copy link
Copy Markdown
Author

@coderabbitai review

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