Skip to content

Security fix for spark on devnet and testnet - #1944

Open
psolstice wants to merge 2 commits into
masterfrom
devnet-testnet-spark-fix
Open

Security fix for spark on devnet and testnet#1944
psolstice wants to merge 2 commits into
masterfrom
devnet-testnet-spark-fix

Conversation

@psolstice

Copy link
Copy Markdown
Contributor

PR intention

Single-input Spark and Chaum v2 proof (a.k.a. H1/H2) HF blocks are set for devnet and testnet

@codeant-ai

codeant-ai Bot commented Sep 4, 2026

Copy link
Copy Markdown

🤖 CodeAnt AI — Review Status

Status Commit Started (UTC) Finished (UTC)
✅ Reviewed your PR 136cd9d Sep 04, 2026 · 07:20 07:22

@codeant-ai

codeant-ai Bot commented Sep 4, 2026

Copy link
Copy Markdown

Thanks for using CodeAnt! 🎉

We're free for open-source projects. if you're enjoying it, help us grow by sharing.

Share on X ·
Reddit ·
LinkedIn

@coderabbitai

coderabbitai Bot commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Team

Run ID: d0abd98c-1dea-41a2-b688-6e9b494ede0f

📥 Commits

Reviewing files that changed from the base of the PR and between 4f0c771 and 136cd9d.

📒 Files selected for processing (1)
  • src/chainparams.cpp

Included review availability: Your plan provides up to 4 included reviews per hour; 3 remain after this review.


Summary by CodeRabbit

  • New Features
    • Spark single-input spends are now active on testnet from block 210,700 and on devnet from block 3,600.
    • Chaum V2 spends are now active on testnet from block 210,800 and on devnet from block 3,700.
    • These network-specific activation heights enable consistent testing and validation of the updated spend capabilities.

Walkthrough

Testnet and devnet now activate Spark single-input and Chaum V2 spends at defined block heights instead of leaving both features disabled.

Changes

Spark activation

Layer / File(s) Summary
Network activation heights
src/chainparams.cpp
Testnet activates Spark single-input at 210700 and Chaum V2 at 210800. Devnet activates them at 3600 and 3700.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Merge Risk: ⚪ Minimal · up to 136cd

Testnet and devnet will activate Spark single-input and Chaum V2 spends at their configured block heights. No current merge-blocking risk remains.

Suggested reviewers: levonpetrosyan93

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 2 functions across 1 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description check ✅ Passed The description includes the mandatory PR intention and accurately states that H1/H2 activation blocks are set for devnet and testnet. The optional Code changes brief section is missing, but the descr…
Title check ✅ Passed The title clearly identifies a security fix for Spark on devnet and testnet. It is concise and directly related to the hard-fork activation changes.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch devnet-testnet-spark-fix

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@codeant-ai codeant-ai Bot added the size:XS This PR changes 0-9 lines, ignoring generated files label Sep 4, 2026
@codeant-ai

codeant-ai Bot commented Sep 4, 2026

Copy link
Copy Markdown

User description

PR intention

Single-input Spark and Chaum v2 proof (a.k.a. H1/H2) HF blocks are set for devnet and testnet


CodeAnt-AI Description

Activate Spark security upgrades on devnet and testnet

What Changed

  • Devnet now enables single-input Spark proofs at block 3600 and Chaum v2 proofs at block 3700
  • Testnet now enables single-input Spark proofs at block 210700 and Chaum v2 proofs at block 210800
  • These network-specific activation heights replace the previous configuration that left both upgrades disabled

Impact

✅ Spark security fixes active on devnet
✅ Spark security fixes active on testnet
✅ Staged H1/H2 proof upgrades at defined block heights

💡 Usage Guide

Checking Your Pull Request

Every time you make a pull request, our system automatically looks through it. We check for security issues, mistakes in how you're setting up your infrastructure, and common code problems. We do this to make sure your changes are solid and won't cause any trouble later.

Talking to CodeAnt AI

Got a question or need a hand with something in your pull request? You can easily get in touch with CodeAnt AI right here. Just type the following in a comment on your pull request, and replace "Your question here" with whatever you want to ask:

@codeant-ai ask: Your question here

This lets you have a chat with CodeAnt AI about your pull request, making it easier to understand and improve your code.

Example

@codeant-ai ask: Can you suggest a safer alternative to storing this secret?

Preserve Org Learnings with CodeAnt

You can record team preferences so CodeAnt AI applies them in future reviews. Reply directly to the specific CodeAnt AI suggestion (in the same thread) and replace "Your feedback here" with your input:

@codeant-ai: Your feedback here

This helps CodeAnt AI learn and adapt to your team's coding style and standards.

Example

@codeant-ai: Do not flag unused imports.

Retrigger review

Ask CodeAnt AI to review the PR again, by typing:

@codeant-ai: review

Check Your Repository Health

To analyze the health of your code repository, visit our dashboard at https://app.codeant.ai. This tool helps you identify potential issues and areas for improvement in your codebase, ensuring your repository maintains high standards of code health.

@reubenyap reubenyap left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Reviewed head 136cd9d45348ab1ad0fdc87541ec95d80bb180c8. No additional actionable issues were found. I traced the testnet/devnet H1/H2 values through Spark transaction-format, mempool, and block-validation gates and confirmed the activation ordering remains valid; the four-line consensus diff is clean.

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

Labels

size:XS This PR changes 0-9 lines, ignoring generated files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants