Skip to content

Feat remove spork 3 block filtering#7213

Draft
knst wants to merge 24 commits intodashpay:developfrom
knst:feat-remove-spork-3-block-filtering
Draft

Feat remove spork 3 block filtering#7213
knst wants to merge 24 commits intodashpay:developfrom
knst:feat-remove-spork-3-block-filtering

Conversation

@knst
Copy link
Collaborator

@knst knst commented Mar 12, 2026

#depends on #7212

Issue being fixed or feature implemented

There's no real usages of spork3 in regression tests currently.
Spork3 doesn't have functional or regressions tests.
Sporks are disabled for main net.

Someday it may be useful for testnet, but [theoretically] it maybe already broken long time ago.

Should we still have it? Any thoughts?
PR is pretty trivial.

What was done?

Removed spork3 that does block filtering.

How Has This Been Tested?

Run unit & functional tests.

Breaking Changes

Spork3 is removed. Affected only devnets, testnet and regtest.

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)

knst and others added 24 commits March 10, 2026 02:57
- Rename IsKnownTx to HasTxForLock for clarity (returns true when
  the lock's transaction is known, not pending without a TX)
- Fix unconditional LookupBlockIndex in CheckCanLock: only take
  cs_main on cache miss instead of every call
- Fix log prefix typos: NetSigning -> NetInstantSend in
  ProcessInstantSendLock
- Remove redundant LookupBlockIndex fallback in ProcessInstantSendLock
  that duplicated the static GetBlockHeight helper
- Simplify AttachISLockToTx: use for-loop with early-continue,
  remove unnecessary variable
- Remove double blank line

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
There's new helper IsValidAndSynced in CGovernanceManager that incapsulate usages of CMasternodeSync in CMNPayment
…otifier is introduced to use it for CChainState
@knst knst added this to the 24 milestone Mar 12, 2026
@github-actions
Copy link

This pull request has conflicts, please rebase.

@github-actions
Copy link

⚠️ Potential Merge Conflicts Detected

This PR has potential conflicts with the following open PRs:

Please coordinate with the authors of these PRs to avoid merge conflicts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants