Skip to content

Commit

Permalink
feat(feature-activation): configure NOP features on mainnet
Browse files Browse the repository at this point in the history
  • Loading branch information
glevco committed Jan 9, 2024
1 parent 974b7e2 commit 7077f40
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
26 changes: 26 additions & 0 deletions hathor/conf/mainnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@

from hathor.checkpoint import Checkpoint as cp
from hathor.conf.settings import HathorSettings
from hathor.feature_activation.feature import Feature
from hathor.feature_activation.model.criteria import Criteria
from hathor.feature_activation.settings import Settings as FeatureActivationSettings

SETTINGS = HathorSettings(
P2PKH_VERSION_BYTE=b'\x28',
Expand Down Expand Up @@ -196,4 +199,27 @@
'00004305882eb3eef6b45f025ff58eb7baa5ca35f7d6f42c8b085482b00474e6',
'000045ecbab77c9a8d819ff6d26893b9da2774eee5539f17d8fc2394f82b758e',
])),
FEATURE_ACTIVATION=FeatureActivationSettings(
enable_usage=True,
features={
Feature.NOP_FEATURE_1: Criteria(
bit=0,
start_height=4_173_120, # N (right now the best block is 4_133_220 on mainnet)
timeout_height=4_213_440, # N + 2 * 20160 (2 weeks after the start)
minimum_activation_height=4_233_600, # N + 3 * 20160 (3 weeks after the start)
lock_in_on_timeout=False,
version='0.59.0',
signal_support_by_default=True,
),
Feature.NOP_FEATURE_2: Criteria(
bit=1,
start_height=4_173_120, # N (right now the best block is 4_133_220 on mainnet)
timeout_height=4_213_440, # N + 2 * 20160 (2 weeks after the start)
minimum_activation_height=0,
lock_in_on_timeout=False,
version='0.59.0',
signal_support_by_default=False,
)
}
)
)
23 changes: 23 additions & 0 deletions hathor/conf/mainnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -179,3 +179,26 @@ SOFT_VOIDED_TX_IDS:
- 000040db8e91bcdc1e65bc868e904345396a0bc4eb084694a72dbcc485555d80
- 00004305882eb3eef6b45f025ff58eb7baa5ca35f7d6f42c8b085482b00474e6
- 000045ecbab77c9a8d819ff6d26893b9da2774eee5539f17d8fc2394f82b758e

FEATURE_ACTIVATION:
enable_usage: true
features:
#### First Phased Testing features on mainnet ####

NOP_FEATURE_1:
bit: 0
start_height: 4_173_120 # N (right now the best block is 4_133_220 on mainnet)
timeout_height: 4_213_440 # N + 2 * 20160 (2 weeks after the start)
minimum_activation_height: 4_233_600 # N + 3 * 20160 (3 weeks after the start)
lock_in_on_timeout: false
version: 0.59.0
signal_support_by_default: true

NOP_FEATURE_2:
bit: 1
start_height: 4_173_120 # N (right now the best block is 4_133_220 on mainnet)
timeout_height: 4_213_440 # N + 2 * 20160 (2 weeks after the start)
minimum_activation_height: 0
lock_in_on_timeout: false
version: 0.59.0
signal_support_by_default: false

0 comments on commit 7077f40

Please sign in to comment.