Skip to content

Q-Coin v0.0.2 testnet

Pre-release
Pre-release

Choose a tag to compare

@fourtytwo42 fourtytwo42 released this 28 Jun 18:07
· 336 commits to main since this release

πŸš€ Q Coin Testnet v0.0.2 - Auto-Reset & Stability Improvements

MAJOR UPDATE: This release introduces automatic blockchain reset functionality and critical stability improvements. The testnet chain will restart with this release.

πŸ”„ Auto-Reset Functionality

The biggest feature in this release is automatic blockchain reset when genesis parameters change. This enables seamless testnet development without manual database management.

How It Works:

  • πŸ” Auto-Detection: Nodes automatically detect when genesis parameters differ from stored blockchain
  • ⚠️ Smart Logging: Clear warnings when reset occurs with old/new genesis hashes
  • 🧹 Complete Wipe: Automatically removes all blockchain data (headers, bodies, receipts, state)
  • πŸš€ Fresh Start: Restarts from block 1 with new genesis parameters
  • βœ… Safe Operation: Only resets when genesis actually changes, not on every startup

Benefits:

  • No manual database deletion when genesis changes
  • Perfect for development with evolving parameters
  • Seamless testnet updates without user intervention
  • Cross-platform consistency between Windows, Linux, and VPS deployments

πŸ›‘οΈ Critical Stability Fixes

Difficulty Collapse Prevention

  • Fixed: Minimum difficulty floor set to 200 (was 1)
  • Problem: Difficulty could drop to 1, making mining trivially easy and destabilizing the blockchain
  • Solution: ASERT-Q algorithm now enforces minimum difficulty of 200 across all code paths
  • Impact: Prevents instant mining and ensures stable block times

Network Improvements

  • βœ… qmpow API properly exposed in all releases for external miners
  • βœ… Enhanced error handling for missing genesis files
  • βœ… Improved logging with clear status messages and debugging info

🌐 Cross-Platform Alignment

Both Windows and Linux platforms now have identical functionality:

Windows Releases

  • Genesis files (genesis_quantum_testnet.json, genesis_quantum_dev.json) included in every release
  • Enhanced PowerShell and batch launchers with auto-reset
  • Fixed command syntax issues

Linux & VPS

  • Enhanced start-geth.sh with auto-reset functionality
  • VPS bootstrap scripts automatically benefit from new features
  • Removed deprecated mainnet references for clarity

πŸ“Š Testnet Restart Details

⚠️ IMPORTANT: This release restarts the testnet chain with improved parameters:

  • New Genesis Hash: Fresh blockchain with updated parameters
  • Starting Difficulty: 200 (0xC8) - properly protected minimum
  • Timestamp: Updated for v0.0.2 release
  • Chain ID: 73235 (unchanged)
  • Network: All existing bootnodes remain functional

πŸ“¦ Downloads

Windows (Ready to Run)

  • quantum-geth-0-0-2.zip (30.32 MB) - Q Coin blockchain node with auto-reset
  • quantum-miner-0-0-2.zip (4.13 MB) - Compatible quantum miner

Linux/VPS (Source + Build Scripts)

  • Q-Coin-0-0-2.rar (106.58 MB) - Complete source with enhanced build scripts and auto-reset functionality

πŸš€ Quick Start

Windows

# Extract quantum-geth-0-0-2.zip
.\start-geth.ps1 testnet          # Start testnet node
.\start-geth.ps1 testnet -mining  # Start with mining enabled

# Extract quantum-miner-0-0-2.zip for external mining
.\start-miner.ps1 -threads 8 -coinbase 0xYourAddress

Linux

# Extract Q-Coin-0-0-2.rar and build
./scripts/linux/start-geth.sh testnet
./scripts/linux/start-geth.sh testnet --mining

VPS Deployment

# Bootstrap script automatically uses v0.0.2 features
curl -sSL https://raw.githubusercontent.com/fourtytwo42/Qgeth3/main/bootstrap-qgeth.sh | sudo bash

πŸ”§ Technical Improvements

  • Auto-Reset Engine: Implemented in SetupGenesisBlockWithOverride() with intelligent hash comparison
  • Difficulty Algorithm: Enhanced ASERT-Q with floor protection in applyASERTAdjustmentPrecise()
  • Cross-Platform Scripts: Unified behavior between Windows and Linux deployments
  • Enhanced Logging: Better visibility into node operations and reset triggers
  • Memory Safety: Improved error handling and resource cleanup

🌐 Network Information

  • Testnet Chain ID: 73235
  • RPC Endpoint: http://localhost:8545 (or your VPS IP)
  • WebSocket: ws://localhost:8546
  • P2P Port: 30303
  • Consensus: QMPoW (Quantum Micro-Puzzle Proof of Work)

πŸ“‹ Upgrade Instructions

From v0.0.1:

  1. Stop existing nodes (the auto-reset will handle blockchain transition)
  2. Download v0.0.2 releases
  3. Start nodes normally (auto-reset will detect and apply new genesis)
  4. Mining continues with improved stability

VPS Users:

  • Existing VPS deployments will auto-update via systemd service
  • Manual restart recommended: sudo systemctl restart qgeth.service

πŸ”— Resources

πŸ’‘ What's Next

  • Enhanced mining pool compatibility
  • Advanced quantum puzzle optimizations
  • Additional network monitoring tools
  • Extended API functionality

πŸŽ‰ Welcome to the enhanced Q Coin testnet! This release represents a major step forward in blockchain automation and stability. The auto-reset functionality makes Q Coin perfect for rapid development and testing cycles.

Join the quantum blockchain revolution! 🌟