|
14 | 14 |
|
15 | 15 | from hathor.checkpoint import Checkpoint as cp
|
16 | 16 | from hathor.conf.settings import HathorSettings
|
| 17 | +from hathor.feature_activation.feature import Feature |
| 18 | +from hathor.feature_activation.model.criteria import Criteria |
17 | 19 | from hathor.feature_activation.settings import Settings as FeatureActivationSettings
|
18 | 20 |
|
19 | 21 | SETTINGS = HathorSettings(
|
|
54 | 56 | ],
|
55 | 57 | FEATURE_ACTIVATION=FeatureActivationSettings(
|
56 | 58 | enable_usage=True,
|
57 |
| - default_threshold=30240 |
| 59 | + default_threshold=30240, |
| 60 | + features={ |
| 61 | + Feature.NOP_FEATURE_1: Criteria( |
| 62 | + bit=0, |
| 63 | + start_height=3_144_960, # N (right now the best block is 3093551 on testnet) |
| 64 | + timeout_height=3_225_600, # N + 2 * 40320 (4 weeks after the start) |
| 65 | + minimum_activation_height=3_265_920, # N + 3 * 40320 (6 weeks after the start) |
| 66 | + lock_in_on_timeout=False, |
| 67 | + version='0.56.0', |
| 68 | + signal_support_by_default=True |
| 69 | + ), |
| 70 | + Feature.NOP_FEATURE_2: Criteria( |
| 71 | + bit=1, |
| 72 | + start_height=3_144_960, # N (right now the best block is 3093551 on testnet) |
| 73 | + timeout_height=3_225_600, # N + 2 * 40320 (4 weeks after the start) |
| 74 | + minimum_activation_height=0, |
| 75 | + lock_in_on_timeout=True, |
| 76 | + version='0.56.0', |
| 77 | + signal_support_by_default=False |
| 78 | + ), |
| 79 | + Feature.NOP_FEATURE_3: Criteria( |
| 80 | + bit=2, |
| 81 | + start_height=3_144_960, # N (right now the best block is 3093551 on testnet) |
| 82 | + timeout_height=3_225_600, # N + 2 * 40320 (4 weeks after the start) |
| 83 | + minimum_activation_height=0, |
| 84 | + lock_in_on_timeout=False, |
| 85 | + version='0.56.0', |
| 86 | + signal_support_by_default=False |
| 87 | + ) |
| 88 | + } |
58 | 89 | )
|
59 | 90 | )
|
0 commit comments