Skip to content

v1.5.0

Latest

Choose a tag to compare

@github-actions github-actions released this 01 Dec 16:23
v1.5.0
8d40241

RCPU Core v1.5.0 release notes

Consensus-neutral DoS hardening release. No consensus changes, no reindex,
no wallet migration, no RPC behavior change.

Full-block PoW outside cs_main (M-02)

Before this release, ProcessNewBlock held cs_main while
CheckBlock(fCheckPOW=true) ran. For Etchash blocks,
CheckProofOfWorkEtchash(POW_VERIFY_FULL) computes HashimotoLight before
comparing hashRandomX, so an unsolicited block with a plausible header could
hold the global lock for roughly 1鈥? ms (about 100 ms on an epoch-cache miss).
R-01 fixed the P2P header path but left the full-block path under the lock.

v1.5.0 splits ProcessNewBlock into three phases:

  1. Under cs_main: duplicate/early-availability check, parent lookup,
    unknown/failed-parent rejection and ContextualCheckBlockHeader.
  2. Without cs_main: CheckBlockHeader with fCheckPOW=true performs the
    FULL RandomX/Etchash hash. This is a pure PoW check; it does not touch
    CBlock::fChecked.
  3. Under cs_main again: re-check the parent and contextual rules, run
    CheckBlock with fCheckPOW=false (merkle/transaction checks remain under
    the lock), then AcceptBlock with pow_already_checked=true so
    AcceptBlockHeader does not repeat the FULL hash.

If the parent disappears or becomes invalid between phases, the block is
rejected; the normal download path can retry. Direct CheckBlock callers
(tests/benchmarks) keep the old locked behavior.

This removes the global-lock hold; it does not add a separate block-PoW
budget for unsolicited blocks. That remains a follow-up (the header path already
has a budget). No consensus rule, block format or on-disk format changed.

Verification

  • Existing validation_block_tests, blockmanager_tests and the functional
    suite exercise ProcessNewBlock; CI is the gate.
  • The design note is in doc/design/block-pow-outside-cs-main.md.

Not changed

  • M-04 full Authenticode verification in verify.py (release tooling).
  • M-05 coinstats historical confidential_outputs (per-height DB schema).
  • Remaining Low/Info audit items.

Compatibility

  • Consensus: unchanged. No reindex.
  • Wallet/RPC/P2P: unchanged.
  • On-disk format: unchanged.

Upgrade

Recommended for all nodes as a DoS-hardening update. v1.4.37 remains the last
1.4.x maintenance release; v1.5.0 is the first release with the full-block PoW
outside cs_main.

Windows binaries in this release

The Windows installer and portable archive are published with an explicit
-unsigned suffix: the Authenticode certificate is not configured for this
repository. Linux tarball and AppImage artifacts are covered by the GPG-signed
SHA256SUMS.txt; do not expect a Windows Authenticode signature on these files.