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
33 changes: 32 additions & 1 deletion hathor/conf/testnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@

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(
Expand Down Expand Up @@ -54,6 +56,35 @@
],
FEATURE_ACTIVATION=FeatureActivationSettings(
enable_usage=True,
default_threshold=30240
default_threshold=30240,
features={
Feature.NOP_FEATURE_1: Criteria(
bit=0,
start_height=3_144_960, # N (right now the best block is 3093551 on testnet)
timeout_height=3_225_600, # N + 2 * 40320 (4 weeks after the start)
minimum_activation_height=3_265_920, # N + 3 * 40320 (6 weeks after the start)
lock_in_on_timeout=False,
version='0.56.0',
signal_support_by_default=True
),
Feature.NOP_FEATURE_2: Criteria(
bit=1,
start_height=3_144_960, # N (right now the best block is 3093551 on testnet)
timeout_height=3_225_600, # N + 2 * 40320 (4 weeks after the start)
minimum_activation_height=0,
lock_in_on_timeout=True,
version='0.56.0',
signal_support_by_default=False
),
Feature.NOP_FEATURE_3: Criteria(
bit=2,
start_height=3_144_960, # N (right now the best block is 3093551 on testnet)
timeout_height=3_225_600, # N + 2 * 40320 (4 weeks after the start)
minimum_activation_height=0,
lock_in_on_timeout=False,
version='0.56.0',
signal_support_by_default=False
)
}
)
)
29 changes: 28 additions & 1 deletion hathor/conf/testnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,31 @@ CHECKPOINTS:

FEATURE_ACTIVATION:
enable_usage: true
default_threshold: 30240 # 30240 = 75% of evaluation_interval (40320)
default_threshold: 30_240 # 30240 = 75% of evaluation_interval (40320)
features:
NOP_FEATURE_1:
bit: 0
start_height: 3_144_960 # N (right now the best block is 3093551 on testnet)
timeout_height: 3_225_600 # N + 2 * 40320 (4 weeks after the start)
minimum_activation_height: 3_265_920 # N + 3 * 40320 (6 weeks after the start)
lock_in_on_timeout: false
version: 0.56.0
signal_support_by_default: true

NOP_FEATURE_2:
bit: 1
start_height: 3_144_960 # N (right now the best block is 3093551 on testnet)
timeout_height: 3_225_600 # N + 2 * 40320 (4 weeks after the start)
minimum_activation_height: 0
lock_in_on_timeout: true
version: 0.56.0
signal_support_by_default: false

NOP_FEATURE_3:
bit: 2
start_height: 3_144_960 # N (right now the best block is 3093551 on testnet)
timeout_height: 3_225_600 # N + 2 * 40320 (4 weeks after the start)
minimum_activation_height: 0
lock_in_on_timeout: false
version: 0.56.0
signal_support_by_default: false