Compute Substrate v1.0.3: Mining Lifecycle Observability

Overview

v1.0.3 adds explicit mining lifecycle observability and standardized miner event logging. As network participation and miner competition increased, it became important to distinguish between local PoW solutions, block propagation, canonical acceptance, orphan/stale outcomes and stale templates during active mining.

This release introduces structured miner lifecycle events to make real-world PoW behavior easier to inspect and debug.


New Miner Events

The miner now emits standardized lifecycle logs including:

  • candidate_created
  • pow_search_started
  • pow_solution_found
  • block_stored
  • block_indexed
  • block_accepted_canonical
  • block_orphaned
  • candidate_stale_before_solution

These events make it possible to clearly distinguish:

  1. local candidate creation
  2. active PoW search
  3. local solution discovery
  4. local block storage/indexing
  5. canonical acceptance
  6. orphan/stale outcomes
  7. stale template invalidation before solve

Example Commands

Follow live miner events:

journalctl -u csd -f | grep ‘[mine-event]’

Inspect solved/orphaned/canonical blocks:

journalctl -u csd --since “24 hours ago” | grep ‘pow_solution_found|block_accepted_canonical|block_orphaned’


Why This Matters

As Compute Substrate transitions from early low-contention operation into a more propagation-sensitive PoW environment, operational visibility becomes increasingly important.

This release improves miner observability under real distributed conditions and should make debugging propagation, convergence, stale behavior, and topology effects significantly easier.


Upgrade Notes

All miners/operators are recommended to upgrade. Recommended optimized build flags:

RUSTFLAGS=“-C target-cpu=native” cargo build --release