Execution Engine & Block Ordering
Zero-gas deterministic Rust execution, 5-class intra-block priority ordering, 10-step block financial lifecycle, parallel execution determinism, and congestion controls.
- Trading pays zero gas—all math executes in pure fixed-point Rust integers (zero floating-point drift) with bit-identical parallel and serial state roots.
- Inside every block, VCore sorts transactions into 5 deterministic classes so Cancellations & Modifies (Class 1) and Pure ALO Quotes (Class 3) always execute ahead of Takers (Class 4).
- Hourly funding ticks execute BEFORE Transaction #1 of the top-of-hour block; VIP volume flushes at the END of each block so volume upgrades take effect on Block H+1.
- During severe volatility (>= 90% block capacity), only new opening orders throttle—cancellations are never throttled and reduce-only closes remain protected.
Once VCore consensus finalizes a block's transaction list, every validator and follower runs the VCore Execution Kernel (vcore-exec)—a deterministic, integer-arithmetic Rust state machine.
1. Deterministic 5-Class Intra-Block Priority Ordering
Before executing user transactions inside a committed block, VCore sorts them into 5 deterministic priority classes (preserving consensus order within each class and same-signer causal order via an O(N log N) causal DAG scheduler):
- · ValidatorPrice
- · Gov & Bridge
- · Oracle / Halt
Fresh oracle index & halts visible first
- · cancel / All
- · cancelByCloid
- · modify / batch
Cancels beat takers in the same block
- · updateLeverage
- · xfer / withdraw
- · agents / PQ
Uses margin freed by Class 1 cancels
- · Pure Alo
- · massQuote (Alo)
Maker quotes rest ahead of takers
- · Gtc / Ioc / Mkt
- · Triggers / TWAP
- · Mixed batches
Matches post-cancel, post-ALO book
| Class | Category | Included Actions | Practical Impact for Traders & MMs |
|---|---|---|---|
| Class 0 | System & Oracle | Validator oracle price updates (ValidatorPrice*), governance & bridge actions, operator SetOracle / SetHalt | Fresh oracle prices and market halts are visible before any user order executes |
| Class 1 | Cancels & Modifies (Cancel-First) | cancel, cancelByCloid, cancelAll, twapCancel, modify, batchModify | Cancels and quote updates win same-block races against takers, curbing stale-quote sniping |
| Class 2 | Margin, Account & Config | updateLeverage, updateIsolatedMargin, usdClassTransfer, withdraw3, usdSend, spotSend, sendAsset, subAccount*, approveAgent*, scheduleCancel, setStpMode, reserveRequestWeight, bindPqLock, rotatePqKey | Runs after Class 1 so margin freed by a same-block cancel is immediately usable for leverage updates or transfers |
| Class 3 | Pure Post-Only Maker (Alo) | Pure Alo orders and massQuote with tif: "Alo" | Maker liquidity rests on the book before same-block taker orders match against it |
| Class 4 | Standard & Taker Orders | Limit (Gtc), Market / Ioc, mixed batches, conditional triggers, twapOrder, massQuote (Gtc / Ioc) | Executes against the updated post-cancel, post-ALO order book |
Best Practice for Market Makers
Keep Alo passive quotes in dedicated transactions rather than mixing Gtc or Ioc orders into the same batch—any mixed batch drops from Class 3 into Class 4.
2. 10-Step Block Financial Lifecycle
Every committed block executes financial transitions in one strict, invariant order:
Two Critical Timing Boundaries to Remember
- Funding Ticks Run First (Step 01): On the first block at or after the top of each UTC hour, VCore records the new hourly funding tick in
O(1)time before Transaction #1 executes—so the very first trade of the hour already accounts for that hour's funding. - VIP Volume Flushes After Matching (Step 06): Block trading volume accumulates in memory and flushes to state at end-of-block. Crossing a 30-day VIP cutoff during
Block Hactivates your new lower fee rate starting onBlock H+1(never retroactively insideBlock H).
3. Parallel Execution Determinism (cross_parallel)
To sustain exchange-grade throughput on multi-core validators without ever risking a consensus divergence:
- Phase 1 — Conservative Pre-Scan: Scans pure-trading bands (
>= 16transactions or>= 4outer batches with>= 16ops) using a 7-inequality safety envelope to partition disjoint markets and independent account sets. - Phase 2 — Zero-Clone Rayon Lanes: Executes independent market lanes concurrently on copy-on-write state views. Because v120 open-order caps, 200 RO caps, and Plan B address limits are evaluated per-account in
O(1), lanes never contend on cross-account locks. - Phase 3 — Deterministic Rebase: Deterministically rebases
oid,tid, and event sequences into canonical order, producing a 100% bit-identicalstate_hashto single-threaded serial execution.
4. Block Capacity & Congestion Throttling
| Guardrail | Limit / Rule |
|---|---|
| Block Capacity | Up to 32,768 transactions / 32,768 order ops per block; 8 MiB (<= v120) expanding to 32 MiB (v121+ PQC blocks) |
| Cancel Byte Ceiling | Cancellations are capped at <= 35% of block bytes so matching always progresses cleanly |
| Congestion Trigger | Activates for the next block whenever the prior block consumed >= 90% op capacity (>= 29,491 / 32,768 ops) |
| Throttled Opening Cap | Opening ops per account cap at |
| Exempt Risk-Reducing Ops | Cancellations are NEVER throttled; reduce-only closes remain exempt up to 16 × open_positions (Protocol MMV family exempt) |
Suppose Block H hits 30,000 / 32,768 ops (91.6% >= 90%), triggering congestion throttling on Block H+1:
- Retail Trader (0% prior-day maker share): Capped at the floor of
16opening ops inBlock H+1, while all cancels and up to16 × open_positionsreduce-only closes remain unrestricted. - Active Market Maker (
2.5%prior-day maker share): Allowed up to opening ops inBlock H+1, keeping deep liquidity online during volatility spikes.
Frequently Asked Questions
Bidding variable gas to cancel stale quotes forces market makers to widen spreads during volatility. VCore eliminates trading gas entirely and prevents spam deterministically through isolated Read/Write edge IP buckets, mempool per-account caps, and volume-scaled on-chain Plan B address quotas.
Yes. The v108 intra-block causal scheduler preserves your same-signer dependencies while prioritizing Class 1 cancels ahead of Class 2 margin actions, Class 3 Alo quotes, and Class 4 takers—so margin freed by your cancel is available in the very same block.
Volume totals flush to persistent state in Step 06 after the block's user transaction loop finishes. Your new VIP 1 fee rate (4.0 / 1.2 bps) applies automatically starting from Transaction #1 of the very next block (Block H+1).