Sporks#

A multi-phased fork, colloquially known as a «spork», is a mechanism unique to Dash used to safely deploy new features to the network through network-level variables to avoid the risk of unintended network forking during upgrades. It can also be used to disable certain features if a security vulnerability is discovered - see the features page for a brief introduction to sporks.

Enforcement of spork-controlled code can be activated remotely by members of the core development team signing a network message using a relevant private key. Should problems arise, the code can be deactivated in the same manner, without the need for a network-wide rollback or client update. This documentation describes the meaning of each spork currently existing on the network, and how to check their respective statuses.

Spork λειτουργίες#

Τα spork καθορίζονται χρησιμοποιώντας αξίες ακεραίων αριθμών. Πολλά spork μπορεί να ορίζονται σε μία συγκεκριμένη εποχή και χρόνο (αριθμό δευτερολέπτων που έχουν περάσει από την 1η Ιανουαρίου 1970) για να ορίσουν τον χρόνο στον οποίο θα είναι ενεργά. Τα ενεργοποιημένα spork ορίζονται στο 0 (δευτερόλεπτα μέχρι την ενεργοποίησή τους). Αυτή η λειτουργία χρησιμοποιείται σηνύθως για να ορίσουμε μία ημερομηνία ένεργοποίησης spork στο μέλλον για να είναι ανενεργό μέχρι να λλάξει. Τα ακόλουθα spork υπάρχουν αυτή την στιγμή στο δίκτυο και εξυπηρετούν λειτουργίες όπως περιγράφεται παρακάτω:

Άλλαξε στην έκδοση v21.0.0: Mainnet spork values were hardened by immutably setting them. Sporks continue to be valuable for testing on other networks; however, on mainnet, the risks of maintaining them now outweigh the benefits of retaining them.

SPORK_2_INSTANTSEND_ENABLED

Governs the ability of Dash clients to use InstantSend functionality. InstantSend is described in DIP0010 LLMQ-based InstantSend.

SPORK_3_INSTANTSEND_BLOCK_FILTERING

If enabled, masternodes will reject blocks containing transactions in conflict with locked but unconfirmed InstantSend transactions.

SPORK_9_SUPERBLOCKS_ENABLED

Αν ενεργοποιηθεί, τα superblocks είναι επαληθευμένα και ορίζονται να πληρώσουν τους νικητές των προτάσεων.

SPORK_17_QUORUM_DKG_ENABLED

Enables the DKG process to create LLMQ quorums. This spork will be turned on once 80% masternodes are upgraded to v0.14, which will enable DKG and DKG-based PoSe.

SPORK_19_CHAINLOCKS_ENABLED

Enables ChainLocks, a mechanism of preventing the risk to payments introduced by blockchain reorganization events. ChainLocks are described in DIP0008 ChainLocks.

SPORK_21_QUORUM_ALL_CONNECTED

Enables connections between all masternodes in a quorum to optimize the signature recovery process.

SPORK_23_QUORUM_POSE

Enforces Proof of Service requirements for masternodes to support a minimum protocol version and maintain open ports.

SPORK_24_TEST_EHF

Supports enhanced hard fork (EHF) testing.

Παρατηρεί το status των spork.#

The spork show and spork active commands issued in the debug window (or from dash-cli on a masternode) allow you to interact with sporks. You can open the debug window by selecting Window > Console.

../../../_images/dashcore-sporks.png

Η παραγωγή spork show και spork active στο Dash Core debug console#