Skip to main content

DRIVE_VERSION_V9

Constant DRIVE_VERSION_V9 

Source
pub const DRIVE_VERSION_V9: DriveVersion;
Expand description

Drive version 9. Introduced in protocol v14, carrying both of v14’s drive-side changes:

  • Shared-prefix aggregate index fixDRIVE_DOCUMENT_METHOD_VERSIONS_V4 bumps the four index walkers to v2 (and the document update walker to v1) so contracts that pair an aggregating (countable / summable) index with a compound index sharing its leading property can insert, update, and delete documents.
  • Contract-level ranked aggregates — the same V4 table adds the detect_ranked_mode routing slot, grove_methods.batch gains the three indexed-tree creation slots, and methods.verify gains document_ranked.verify_ranked_top_k_proof. All are 0 at introduction; the ranked grammar itself is gated one layer up by CONTRACT_VERSIONS_V6’s meta schema v3.
  • Contest restart over orphaned vote trees — the same V4 table bumps insert_contested.add_contested_vote_subtree_for_non_identities_operations to 1 so a new contest recreates the abstain or lock vote tree over the storage an earlier poll’s cleanup left behind (it only removed the trees that received votes) instead of failing with CorruptedContractIndexes.
  • Contract groupscreate_initial_state_structure 4 creates the ContractGroups root tree (key 68) with its groups and members subtrees; DRIVE_CONTRACT_GROUP_METHOD_VERSIONS_V1 carries the insert, fetch, prove and estimation slots; DRIVE_STATE_TRANSITION_METHOD_VERSIONS_V4 moves the contract create converter to 1 so a version 1 create transition also emits the group registration and membership operations.

Everything else matches DRIVE_VERSION_V8.