Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions hathor/conf/testnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,33 @@
lock_in_on_timeout=False,
version='0.56.0',
signal_support_by_default=False
),
Feature.NOP_FEATURE_4: Criteria(
bit=0,
start_height=3_386_880, # N (right now the best block is 3_346_600 on testnet)
timeout_height=3_467_520, # N + 2 * 40320 (4 weeks after the start)
minimum_activation_height=3_507_840, # N + 3 * 40320 (6 weeks after the start)
lock_in_on_timeout=False,
version='0.57.0',
signal_support_by_default=True
),
Feature.NOP_FEATURE_5: Criteria(
bit=1,
start_height=3_386_880, # N (right now the best block is 3_346_600 on testnet)
timeout_height=3_467_520, # N + 2 * 40320 (4 weeks after the start)
minimum_activation_height=0,
lock_in_on_timeout=True,
version='0.57.0',
signal_support_by_default=False
),
Feature.NOP_FEATURE_6: Criteria(
bit=2,
start_height=3_386_880, # N (right now the best block is 3_346_600 on testnet)
timeout_height=3_467_520, # N + 2 * 40320 (4 weeks after the start)
minimum_activation_height=0,
lock_in_on_timeout=False,
version='0.57.0',
signal_support_by_default=False
)
}
)
Expand Down
31 changes: 31 additions & 0 deletions hathor/conf/testnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ FEATURE_ACTIVATION:
enable_usage: true
default_threshold: 30_240 # 30240 = 75% of evaluation_interval (40320)
features:
#### First Phased Testing features ####

NOP_FEATURE_1:
bit: 0
start_height: 3_144_960 # N (right now the best block is 3093551 on testnet)
Expand All @@ -66,3 +68,32 @@ FEATURE_ACTIVATION:
lock_in_on_timeout: false
version: 0.56.0
signal_support_by_default: false

#### Second Phased Testing features ####

NOP_FEATURE_4:
bit: 0
start_height: 3_386_880 # N (right now the best block is 3_346_600 on testnet)
timeout_height: 3_467_520 # N + 2 * 40320 (4 weeks after the start)
minimum_activation_height: 3_507_840 # N + 3 * 40320 (6 weeks after the start)
lock_in_on_timeout: false
version: 0.57.0
signal_support_by_default: true

NOP_FEATURE_5:
bit: 1
start_height: 3_386_880 # N (right now the best block is 3_346_600 on testnet)
timeout_height: 3_467_520 # N + 2 * 40320 (4 weeks after the start)
minimum_activation_height: 0
lock_in_on_timeout: true
version: 0.57.0
signal_support_by_default: false

NOP_FEATURE_6:
bit: 2
start_height: 3_386_880 # N (right now the best block is 3_346_600 on testnet)
timeout_height: 3_467_520 # N + 2 * 40320 (4 weeks after the start)
minimum_activation_height: 0
lock_in_on_timeout: false
version: 0.57.0
signal_support_by_default: false
6 changes: 6 additions & 0 deletions hathor/feature_activation/feature.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ class Feature(Enum):
should NOT be changed either, as configuration uses them for setting feature activation criteria.
"""

# First Phased Testing features
NOP_FEATURE_1 = 'NOP_FEATURE_1'
NOP_FEATURE_2 = 'NOP_FEATURE_2'
NOP_FEATURE_3 = 'NOP_FEATURE_3'

# Second Phased Testing features
NOP_FEATURE_4 = 'NOP_FEATURE_4'
NOP_FEATURE_5 = 'NOP_FEATURE_5'
NOP_FEATURE_6 = 'NOP_FEATURE_6'
2 changes: 1 addition & 1 deletion hathor/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -1075,7 +1075,7 @@ def _log_feature_states(self, vertex: BaseTransaction) -> None:
features_states=state_by_feature
)

features = [Feature.NOP_FEATURE_1, Feature.NOP_FEATURE_2, Feature.NOP_FEATURE_3]
features = [Feature.NOP_FEATURE_4, Feature.NOP_FEATURE_5, Feature.NOP_FEATURE_6]
for feature in features:
self._log_if_feature_is_active(vertex, feature)

Expand Down