Skip to content

Comments

feat(rpc)!: remove spork active and its test, spork=spork show, update spork/sporkupdate help text#6207

Draft
UdjinM6 wants to merge 5 commits intodashpay:developfrom
UdjinM6:chore_spork_rpc
Draft

feat(rpc)!: remove spork active and its test, spork=spork show, update spork/sporkupdate help text#6207
UdjinM6 wants to merge 5 commits intodashpay:developfrom
UdjinM6:chore_spork_rpc

Conversation

@UdjinM6
Copy link

@UdjinM6 UdjinM6 commented Aug 12, 2024

Issue being fixed or feature implemented

What was done?

How Has This Been Tested?

Breaking Changes

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated relevant unit/integration/functional/e2e tests
  • I have made corresponding changes to the documentation
  • I have assigned this pull request to a milestone (for repository code-owners and collaborators only)

@UdjinM6 UdjinM6 added this to the 22 milestone Aug 12, 2024
@UdjinM6 UdjinM6 added the RPC Some notable changes to RPC params/behaviour/descriptions label Aug 12, 2024
@thephez
Copy link
Collaborator

thephez commented Aug 12, 2024

🥇 👈 for longest PR name 😉

@UdjinM6 UdjinM6 changed the title feat: remove misleading and unused spork active and its test, let spork accept anything and act like spork show feat: remove spork active and its test, spork=spork show, update spork/sporkupdate help text Aug 12, 2024
'''
'''

class SporkTest(BitcoinTestFramework):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so far as we do not remove Spork functionality completely, but still uses them on regtest and devnets, we should not remove this functional tests, even if that's a trivial one

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed

Comment on lines -162 to -166
RPCResult{"For 'active'",
RPCResult::Type::OBJ_DYN, "", "keys are the sporks, and values indicates its status",
{
{RPCResult::Type::BOOL, "SPORK_NAME", "'true' for time-based sporks if spork is active and 'false' otherwise"},
}},
Copy link
Member

@PastaPastaPasta PastaPastaPasta Aug 14, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dropping this param is a breaking change

@PastaPastaPasta PastaPastaPasta changed the title feat: remove spork active and its test, spork=spork show, update spork/sporkupdate help text feat!: remove spork active and its test, spork=spork show, update spork/sporkupdate help text Aug 14, 2024
@PastaPastaPasta PastaPastaPasta marked this pull request as draft August 14, 2024 04:51
@github-actions
Copy link

This pull request has conflicts, please rebase.

@UdjinM6 UdjinM6 marked this pull request as ready for review September 22, 2024 15:39
@UdjinM6 UdjinM6 changed the title feat!: remove spork active and its test, spork=spork show, update spork/sporkupdate help text feat(rpc)!: remove spork active and its test, spork=spork show, update spork/sporkupdate help text Sep 22, 2024
knst
knst previously approved these changes Oct 16, 2024
Copy link
Collaborator

@knst knst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM df6080d6c74a83017c73b1ef008289979b48a597

@github-actions
Copy link

This pull request has conflicts, please rebase.

@PastaPastaPasta PastaPastaPasta modified the milestones: 22, 23 Nov 14, 2024
@github-actions
Copy link

This pull request has conflicts, please rebase.

@UdjinM6 UdjinM6 marked this pull request as draft December 11, 2024 15:07
@DashCoreAutoGuix
Copy link

❌ Backport Verification - CATASTROPHIC FAILURE

Reviewed commit hash: -verify-1753726038

Critical violations detected:

🚨 Massive Scope Explosion

  • Files changed: 1000+ files
  • Expected scope: 2-5 files for spork RPC changes
  • Issue: This PR appears to be based on a very old branch, causing massive unrelated changes

🔧 Technical Issues

  • CI Failures: 2 critical failures (check_merge, riscv64 build)
  • Merge conflicts: Multiple unresolved conflicts
  • Branch issues: Based on outdated commit, not current develop

📋 Actual Changes Needed

The legitimate spork changes appear to be:

  • src/rpc/misc.cpp: Remove 'spork active' command, make 'spork' act like 'spork show'
  • test/functional/feature_sporks.py: Update tests
  • doc/release-notes-6207.md: Documentation

🔄 Recommended Action

  1. Close this PR - the branch is fundamentally broken
  2. Create new PR from current develop branch
  3. Cherry-pick only the legitimate spork commits (e4f4458d56, ed09997e38, e6e927d7f1, e1d019f0d7, df6080d6c7)
  4. Test thoroughly before submission

This PR cannot be salvaged due to the scope explosion and branch issues. The underlying feature changes appear valid but need proper implementation.


Automated verification by backport verification system

@DashCoreAutoGuix
Copy link

Automatically closed due to catastrophic validation failures. The PR contains massive scope explosion (1000+ files for a simple spork change) indicating it was created from an outdated branch. Please create a new PR from current develop branch with only the necessary spork changes.

@github-actions
Copy link

✅ No Merge Conflicts Detected

This PR currently has no conflicts with other open PRs.

@github-actions
Copy link

This pull request has conflicts, please rebase.

@UdjinM6 UdjinM6 removed this from the 23 milestone Oct 27, 2025
@knst knst added this to the 24 milestone Feb 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs rebase RPC Some notable changes to RPC params/behaviour/descriptions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants