Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • crown-core crown-core
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 75
    • Issues 75
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Crown
  • crown-corecrown-core
  • Wiki
  • How to turn on off enforcement

Last edited by Josh Wilcox May 10, 2018
Page history

How to turn on off enforcement

Enforcements are controlled by sporks. "spork" is a mechanism to disable/enable certain functionality through network-level variables. The following spork values currently exist in network

  • SPORK_2_INSTANTX
  • SPORK_3_INSTANTX_BLOCK_FILTERING
  • SPORK_5_MAX_VALUE
  • SPORK_7_MASTERNODE_SCANNING
  • SPORK_8_MASTERNODE_PAYMENT_ENFORCEMENT
  • SPORK_9_MASTERNODE_BUDGET_ENFORCEMENT
  • SPORK_10_MASTERNODE_DONT_PAY_OLD_NODES
  • SPORK_11_RESET_BUDGET
  • SPORK_12_RECONSIDER_BLOCKS
  • SPORK_13_ENABLE_SUPERBLOCKS
  • SPORK_14_SYSTEMNODE_PAYMENT_ENFORCEMENT
  • SPORK_15_SYSTEMNODE_DONT_PAY_OLD_NODES
  • SPORK_16_SYSTEMNODE_DISCONNECT_OLD_NODES

To avoid the risk of unintended network fork during upgrades the following spork variables need to be turned off

  • SPORK_8_MASTERNODE_PAYMENT_ENFORCEMENT
  • SPORK_9_MASTERNODE_BUDGET_ENFORCEMENT
  • SPORK_10_MASTERNODE_DONT_PAY_OLD_NODES
  • SPORK_14_SYSTEMNODE_PAYMENT_ENFORCEMENT
  • SPORK_15_SYSTEMNODE_DONT_PAY_OLD_NODES
  • SPORK_16_SYSTEMNODE_DISCONNECT_OLD_NODES

To be able to change spork values one need to have spork private key. The key need to be added in crown.conf with the following format

sporkkey=SPORK_KEY

To turn enforcement off the following command need to be used

spork <SPORK_KEY> 4070908800<br> The number is a timestamp equivalent to 2099-01-01

To turn enforcement on the value of spork key need to be 1.

spork <SPORK_KEY> 1

Example:

spork SPORK_8_MASTERNODE_PAYMENT_ENFORCEMENT 1 (on)<br> spork SPORK_8_MASTERNODE_PAYMENT_ENFORCEMENT 4070908800 (off)<br>

To check spork status the following commands are possible

spork show (Displays spork values)<br> spork active (Displays the current state of spork keys)

Clone repository
  • 19.01.18 Testnet Fork Report
  • Credentials for electrumx servers
  • How to turn on off enforcement
  • Quality Assurance
  • Quality Assurance
    • Instant Send Testing
    • documents
  • Seed nodes
  • bounties
  • code of conduct
  • coding style guide
  • communications & marketing
  • community
  • community
    • Announcement Responsibilities
    • Developers
    • community built
View All Pages