# Mempool & transaction ordering

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

Canonical page: https://quantumchain.info/docs/protocol/mempool

Category: Protocol · Reviewed: 24 November 2026

## 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.

[View the diagram or interactive example](<https://quantumchain.info/docs/protocol/mempool#queue>). Visual-only examples are not reproduced in this text export.

## 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.

| Shared validity checks | Local resource decisions |
| --- | --- |
| Canonical encoding, supported type and network | Mempool size and relay budget |
| Required witnesses and authorization | Rate limits and abuse controls |
| Replay scope, sequence and time window | Waiting-pool capacity |
| State-dependent constraints and fee syntax | Local 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.

| Requirement | Reason |
| --- | --- |
| Same authorized conflict scope | Tie the replacement to the pending action |
| Valid transaction-class semantics | Preserve the operation’s allowed transitions |
| Required fee increase and policy | Prevent repeated trivial replacements |
| Original still eligible for replacement | Do 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.

> **Readiness is not a promise**
> A ready transaction may still wait, expire or be evicted. Inclusion in a proposal is not final settlement.

## 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.

## Related reading

- [Networking & transaction relay](<https://quantumchain.info/docs/protocol/networking>)
- [Fees & resource costs](<https://quantumchain.info/docs/transactions/fees>)
- [Transaction lifecycle](<https://quantumchain.info/docs/transactions/lifecycle>)
- [QuantumChain whitepaper](<https://quantumchain.info/whitepaper>)
