Skip to content

Timestamp and tip-age limits retain Bitcoin assumptions despite qbit’s one-minute cadence #132

Closed

Description

@kiwidream

Summary

Several block-timestamp and chain-freshness limits retain Bitcoin Core v30.2 wall-clock values even though qbit targets a 60-second aggregate cadence, uses 75-second and 300-second Cadence lanes, and adjusts each lane with a two-hour ASERT half-life.

These constants serve different purposes—header acceptance, wallet rescanning, GUI status, fee estimation, and initial-sync detection—but some remain coupled and none of the inherited values has an evident qbit-specific rationale or boundary test.

This issue identifies the mismatch and its affected surfaces. It intentionally does not prescribe replacement values, implementation details, or deployment mechanics.

Verified on

origin/1.0.0 at 8ad6cd5ebdce5878c3921018d884130805e8248b.

No existing issue matching these constants or this parameter mismatch was found.

Current behaviour

qbit retains these Bitcoin Core v30.2 values:

Constant or check Current duration Bitcoin target intervals qbit aggregate target intervals
MAX_FUTURE_BLOCK_TIME 120 minutes 12 120
TIMESTAMP_WINDOW 120 minutes 12 120
MAX_BLOCK_TIME_GAP 90 minutes 9 90
Fee-estimation maximum tip age 180 minutes 18 180
Default IBD maximum tip age 24 hours 144 1,440
Wallet anti-fee-sniping tip age 8 hours 48 480
Verification-progress recent-header window 2 hours 12 120

The interval counts are not an assertion that every value should scale linearly. They show that the inherited values represent materially different chain states under qbit’s cadence.

By contrast, qbit already changed MAX_TIMEWARP from Bitcoin Core’s 600 seconds to 60 seconds, preserving one aggregate target interval.

Affected behaviour

Future header timestamps and ASERT

MAX_FUTURE_BLOCK_TIME permits a header timestamp up to two hours ahead of node time.

Contextual header validation applies that limit in validation.cpp. Accepted timestamps subsequently enter qbit’s lane-local ASERT calculation through the previous same-lane header time in pow.cpp.

The allowed forward window therefore equals qbit’s entire ASERT half-life. Bitcoin Core v30.2 has the same two-hour acceptance limit but does not share qbit’s one-minute Cadence and two-hour lane-local ASERT parameter relationship. The economic and synchronization behaviour at this boundary lacks qbit-specific justification and coverage.

GUI chain freshness

MAX_BLOCK_TIME_GAP is still 90 minutes.

The Qt status indicator uses it to decide whether to display “Up to date,” while the modal overlay uses it when determining incomplete synchronization. On Bitcoin this represents approximately nine expected blocks; on qbit it represents approximately 90 aggregate blocks.

As a result, when no better header is known, qbit-qt may continue presenting a synced state through a chain interruption far longer than qbit’s configured cadence would suggest.

Coupled wallet timestamp window

TIMESTAMP_WINDOW is defined directly as MAX_FUTURE_BLOCK_TIME.

It is used by wallet birth-time handling, rescans, import RPCs, pruning-related timestamp searches, and blockchain RPC lookups. These historical-search guarantees are distinct from the maximum future timestamp accepted for a new header.

The alias prevents either behaviour from being evaluated independently and makes a validation-parameter review implicitly affect wallet and RPC scan boundaries.

Other inherited freshness checks

The fee estimator, initial-block-download state, wallet anti-fee-sniping logic, and verification-progress calculation retain Bitcoin wall-clock durations. Under qbit’s cadence, each tolerates approximately ten times as many expected blocks as in Bitcoin Core.

It is unclear whether these longer relative windows are intentional operational policy or unreviewed inheritance.

Expected behaviour

Each timestamp or tip-age limit should have a documented qbit-specific invariant explaining:

  • which clock or block timestamp it measures;
  • whether it is a validation, wallet-safety, GUI, or operational parameter;
  • how qbit’s aggregate and lane-specific cadence affects it;
  • whether ASERT consumes the bounded timestamp;
  • what boundary and negative tests establish its intended behaviour; and
  • what compatibility constraints follow from the existing public testnet4 chain.

Validation limits should not be implicitly coupled to wallet rescan safety or GUI freshness unless that coupling is intentional and documented.

Steps to reproduce

  1. Inspect the timestamp constants in src/chain.h.
  2. Compare them with Bitcoin Core v30.2 src/chain.h.
  3. Inspect qbit’s 60-second aggregate spacing, 75/300-second lane spacings, and two-hour ASERT half-life in src/kernel/chainparams.cpp.
  4. Trace MAX_FUTURE_BLOCK_TIME into contextual header validation and the accepted header timestamp into lane-local ASERT.
  5. Trace MAX_BLOCK_TIME_GAP into both Qt synchronization displays.
  6. Trace TIMESTAMP_WINDOW through wallet and RPC timestamp searches.
  7. Compare the remaining tip-age checks with their Bitcoin Core v30.2 values.

No runtime configuration or platform-specific behaviour is required to observe the mismatch.

Scope

This report does not:

  • propose new numeric values;
  • prescribe an activation or rollout mechanism;
  • assert that every duration must scale directly with target spacing;
  • change Cadence, ASERT, or median-time-past semantics; or
  • claim that existing testnet4 history is invalid.

It records that Bitcoin-derived wall-clock assumptions now cover substantially different chain and difficulty states in qbit and need an explicit, unified review.

Environment

  • Obtained from: source
  • Version: origin/1.0.0 at 8ad6cd5ebdce5878c3921018d884130805e8248b
  • Operating system: platform-independent source review
  • Relevant logs: none

Activity

  1. added
    bug
    on Jul 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions