|
7 | 7 |
|
8 | 8 | {.push raises: [].} |
9 | 9 |
|
10 | | -import chronos/timer |
| 10 | +import chronos/timer, ./constants_raw |
11 | 11 |
|
12 | 12 | type |
13 | 13 | Slot* = distinct uint64 |
|
24 | 24 | NODE_ID_BITS* = 256 |
25 | 25 |
|
26 | 26 | # https://github.com/ethereum/consensus-specs/blob/v1.6.0-alpha.0/specs/phase0/p2p-interface.md#configuration |
27 | | - EPOCHS_PER_SUBNET_SUBSCRIPTION* = 256'u64 |
28 | | - SUBNETS_PER_NODE* = 2'u64 |
| 27 | + EPOCHS_PER_SUBNET_SUBSCRIPTION* {.intdefine.}: uint64 = 256'u64 # hoodiUZH |
| 28 | + SUBNETS_PER_NODE* {.intdefine.}: uint64 = 2'u64 # hoodiUZH |
29 | 29 | ATTESTATION_SUBNET_COUNT*: uint64 = 64 |
30 | 30 | ATTESTATION_SUBNET_EXTRA_BITS* = 0'u64 |
31 | 31 | ATTESTATION_SUBNET_PREFIX_BITS* = 6'u64 ## \ |
@@ -64,15 +64,16 @@ const |
64 | 64 |
|
65 | 65 | # https://github.com/ethereum/consensus-specs/blob/v1.4.0-beta.5/specs/phase0/fork-choice.md#configuration |
66 | 66 | PROPOSER_SCORE_BOOST*: uint64 = 40 |
67 | | - REORG_HEAD_WEIGHT_THRESHOLD*: uint64 = 20 |
| 67 | + REORG_HEAD_WEIGHT_THRESHOLD* {.intdefine.}: uint64 = 20 # hoodiUZH |
68 | 68 | REORG_PARENT_WEIGHT_THRESHOLD*: uint64 = 160 |
69 | | - REORG_MAX_EPOCHS_SINCE_FINALIZATION* = Epoch(2) |
| 69 | + REORG_MAX_EPOCHS_SINCE_FINALIZATION* {.intdefine.} = |
| 70 | + Epoch(REORG_MAX_EPOCHS_SINCE_FINALIZATION) |
70 | 71 |
|
71 | 72 | # https://github.com/ethereum/consensus-specs/blob/v1.4.0-beta.1/specs/phase0/p2p-interface.md#configuration |
72 | | - MAX_REQUEST_BLOCKS* = 1024'u64 |
73 | | - RESP_TIMEOUT* = 10'u64 |
| 73 | + MAX_REQUEST_BLOCKS* {.intdefine.}: uint64 = 1024'u64 # hoodiUZH |
| 74 | + RESP_TIMEOUT* {.intdefine.}: uint64 = 10'u64 # hoodiUZH |
74 | 75 | ATTESTATION_PROPAGATION_SLOT_RANGE*: uint64 = 32 |
75 | | - MAXIMUM_GOSSIP_CLOCK_DISPARITY* = 500.millis |
| 76 | + MAXIMUM_GOSSIP_CLOCK_DISPARITY* = MAXIMUM_GOSSIP_CLOCK_DISPARITY.int64.millis |
76 | 77 |
|
77 | 78 | # https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.2/specs/phase0/p2p-interface.md#configuration |
78 | 79 | MAX_PAYLOAD_SIZE* = 10'u64 * 1024 * 1024 # bytes |
|
0 commit comments