QuantumChain QTCN
MenuClose menu
Documentation QTCN / NETWORK

QUANTUMCHAIN

Explore the docs

Architecture · Payments · Protocol

PROTOCOL · DESIGN GUIDE

Mempool & transaction ordering

Understand local admission, dependencies, conflicts and the step from a pending transaction to a valid candidate block.

9 min readReviewed 24 November 2026Markdown ↗

A pending transaction can have different local outcomes

A mempool holds transactions a node is considering for future inclusion. Its exact contents need not match every other node. Consensus validity remains shared even when local storage, relay and prioritization policies differ.

The examples separate readiness, unresolved dependencies, conflicts and eviction. No local queue status proves that a payment has finalized.

02 / A LOCAL VIEW OF PENDING WORK

Pending has more than one meaning.

Select a case to inspect the admission boundary.

ILLUSTRATIVE TRANSACTIONCandidate
Dependency
Required predecessor satisfied
Conflict check
No known conflicting spend
Local handling
Retained for possible inclusion
Eligible for consideration, not guaranteed inclusion.

The proposer must still respect resources and the consensus rules.

Peers may keep different queues.
They must share protocol validity rules.

Read-only example · no mempool is queried or changed.

Admission combines validity and local policy

Local policy must not redefine consensus validity. A transaction may be rejected for local resource reasons without becoming universally invalid. Conversely, offering a larger fee cannot repair an invalid signature.

Admission combines validity and local policy
Shared validity checksLocal resource decisions
Canonical encoding, supported type and networkMempool size and relay budget
Required witnesses and authorizationRate limits and abuse controls
Replay scope, sequence and time windowWaiting-pool capacity
State-dependent constraints and fee syntaxLocal fee floor and eviction preference

Track what must happen first

A transaction using sequence N+1 may depend on sequence N. Other operations can depend on an asset, descriptor or state transition becoming available. Waiting pools must remain bounded.

Different transaction IDs can still conflict: they might consume the same value object, use the same exclusive sequence or compete for the same state revision. Conflict detection follows semantics, not only identifier equality.

Replacement is conditional, not a universal cancel button

The source describes fee bumps and class-specific cancellation as possible valid replacements. It does not define a final universal bump percentage or guarantee that every transaction can be cancelled.

A submitted replacement may race with the original. Wallets must reconcile the finalized outcome; a replacement request cannot reverse an already finalized transaction.

Replacement is conditional, not a universal cancel button
RequirementReason
Same authorized conflict scopeTie the replacement to the pending action
Valid transaction-class semanticsPreserve the operation’s allowed transitions
Required fee increase and policyPrevent repeated trivial replacements
Original still eligible for replacementDo not replace finalized actions or prohibited proposal states

A candidate block needs more than a fee ranking

Proposers consider sequence readiness, dependencies, conflicts, resource budgets and applicable lane constraints. Transaction size, signature verification, execution and state writes can consume different budgets.

Payment, asset, validator and governance workloads may use separate lanes. Exact quotas and scoring remain profile decisions; this guide does not select a production scheduler.

Recheck the queue as state changes

Local eviction is not a network-wide cancellation. A different peer may still hold the transaction. After an uncertain submission, reconcile the original transaction identity before deciding whether another action is needed.

  • Finalized state may advance a sequence or consume a referenced object.
  • An authority or asset-policy update may change pending validity.
  • A fee payer may no longer have sufficient funds.
  • Newly satisfied dependencies may make waiting transactions ready.
  • Finalized transactions leave the queue; conflicts must be reconsidered.