VTA Benchmark
Deep Technical Audit

Chain Download + Headers/Blocks Synchronization

This audit separates the peer-to-peer mechanics used to discover chain data from the consensus rules that decide which chain is valid. It focuses on headers/block acquisition, inventory requests, previous-block linkage, most-work chain selection, orphan handling, and the evidence needed to measure synchronization performance.

Chain Selection

SOURCE EVIDENCE

Reviewed VTA source maintains chainActive and compares chain work when selecting the best known chain.

Block Acquisition

P2P PATH

The previously audited inventory/getdata/block message path provides the transport layer for block acquisition.

Previous Link

CONSENSUS

Block processing requires the previous-block relationship before a block can become part of the active chain.

Sync Benchmark

NOT MEASURED

No controlled full-node initial-sync benchmark has been executed.

Synchronization Flow

Connect Peersversion / verack Discover Chainpeer inventory / locators Request Datagetdata / blocks ValidatePoW / tx / linkage Select Chainmost-work active chain Headers / blocks are acquisition mechanisms; validity is decided separately A peer can advertise or deliver a block that the receiving node ultimately rejects. Chain synchronization therefore combines P2P transport, validation, orphan recovery and chain-work selection. Valid Extensionprevious hash matches→ validate → chain candidate Missing Parentorphan path→ wait / request dependency More-Work Chainchain comparator→ active-chain transition

Audit Matrix

AreaReviewed findingStatus
Peer handshakeVersion/verack establishes the peer messaging session used by later synchronization traffic.Cross-audited
Inventory / requestsThe P2P message layer provides inventory announcements and getdata requests for object transfer.Cross-audited
Previous-block linkageBlock processing uses the previous-block relationship when connecting a candidate block to chain state.Source path
PoW validationCandidate blocks pass proof-of-work validation before becoming accepted chain data.Previously verified
Chain workCBlockIndexWorkComparator orders competing chains using nChainWork, with sequence ordering as a secondary comparison.Source evidence
Active chainchainActive represents the selected active chain after chain-state transitions.Source evidence
Orphan blocksMissing-parent blocks enter an orphan-related processing path; exact release-pinned storage and retry details require deeper source tracing.Needs deeper pin
Headers-first synchronizationA modern headers-first download claim should not be inferred for this legacy codebase without release-specific message/state tracing.Not asserted
Initial sync speedNo controlled clean-node synchronization timing, bandwidth, CPU or disk benchmark has been performed.Not measured
Network-wide sync statusThe user's local height is not treated as the current network-wide height.Evidence rule

Sync Integrity Boundaries

Acquisition

Peers provide candidate chain data. Acquisition itself is not proof of validity.

Validation

PoW, header rules, transactions and chain-state rules determine whether candidate data can be accepted.

Chain Selection

Competing valid candidates are compared through chain-work logic rather than by simply trusting peer height.

Measurement Gap

No claim is made about current network synchronization speed or peer-to-peer download efficiency.

Release-Pinned Sync Test Plan

1. Pin exact VTA Core release / commit.
2. Start a clean disposable node with no existing chainstate.
3. Record peer count and connection times.
4. Capture version/verack and synchronization-related messages.
5. Record inventory / request sequence.
6. Record first received block and first accepted block.
7. Verify previous-block linkage for sampled blocks.
8. Record validation failures separately from transport failures.
9. Create a controlled competing branch and observe chain-work selection.
10. Deliver a child block before its parent and observe orphan recovery.
11. Measure blocks/hour, bytes received, CPU and disk activity.
12. Repeat with different peer counts.
13. Compare clean-node sync time across exact releases.
14. Never use the production wallet directory for destructive sync experiments.
Evidence rule: This page does not equate “highest block number received” with a valid synchronized chain. Chain synchronization must be evaluated through acquisition, validation, dependency recovery and chain-work selection.
VTA Benchmark — Chain Download + Headers/Blocks Synchronization Deep Audit. Current local VTA node data remains a local/stale snapshot and is not presented as network-wide current height.