Address Danny's comment

This commit is contained in:
Justin Drake 2019-05-07 15:01:23 +01:00
parent 22b06d581d
commit ecc6429b9e
2 changed files with 1 additions and 4 deletions

View File

@ -18,9 +18,6 @@ from eth2spec.utils.bls_stub import *
# stub, will get overwritten by real var
SLOTS_PER_EPOCH = 64
def int_to_bytes(integer: int, length: int) -> bytes:
return integer.to_bytes(length, 'little')
Slot = NewType('Slot', int) # uint64
Epoch = NewType('Epoch', int) # uint64
Shard = NewType('Shard', int) # uint64

View File

@ -194,7 +194,7 @@ These configurations are updated for releases, but may be out of sync during `de
| `GENESIS_SLOT` | `0` |
| `GENESIS_EPOCH` | `0` |
| `FAR_FUTURE_EPOCH` | `2**64 - 1` |
| `ZERO_HASH` | `int_to_bytes(0, length=32)` |
| `ZERO_HASH` | `b'\x00' * 32` |
| `BLS_WITHDRAWAL_PREFIX` | `0` |
### Time parameters