Merge pull request #299 from ethereum/fix-genesis-block
fix genesis block
This commit is contained in:
commit
8116562049
|
@ -395,7 +395,7 @@ Unless otherwise indicated, code appearing in `this style` is to be interpreted
|
||||||
'slot': 'uint64',
|
'slot': 'uint64',
|
||||||
# Skip list of ancestor beacon block hashes
|
# Skip list of ancestor beacon block hashes
|
||||||
# i'th item is the most recent ancestor whose slot is a multiple of 2**i for i = 0, ..., 31
|
# i'th item is the most recent ancestor whose slot is a multiple of 2**i for i = 0, ..., 31
|
||||||
'parent_hash': 'hash32',
|
'parent_root': 'hash32',
|
||||||
'state_root': 'hash32',
|
'state_root': 'hash32',
|
||||||
'randao_reveal': 'hash32',
|
'randao_reveal': 'hash32',
|
||||||
'candidate_pow_receipt_root': 'hash32',
|
'candidate_pow_receipt_root': 'hash32',
|
||||||
|
@ -410,9 +410,9 @@ Unless otherwise indicated, code appearing in `this style` is to be interpreted
|
||||||
|
|
||||||
```python
|
```python
|
||||||
{
|
{
|
||||||
'attestations': [Attestation],
|
|
||||||
'proposer_slashings': [ProposerSlashing],
|
'proposer_slashings': [ProposerSlashing],
|
||||||
'casper_slashings': [CasperSlashing],
|
'casper_slashings': [CasperSlashing],
|
||||||
|
'attestations': [Attestation],
|
||||||
'deposits': [Deposit],
|
'deposits': [Deposit],
|
||||||
'exits': [Exit],
|
'exits': [Exit],
|
||||||
}
|
}
|
||||||
|
@ -1044,14 +1044,12 @@ A valid block with slot `INITIAL_SLOT_NUMBER` (a "genesis block") has the follow
|
||||||
|
|
||||||
```python
|
```python
|
||||||
{
|
{
|
||||||
'header': BeaconBlockHeader(
|
slot=INITIAL_SLOT_NUMBER,
|
||||||
slot=INITIAL_SLOT_NUMBER,
|
parent_root=ZERO_HASH,
|
||||||
parent_hash=ZERO_HASH,
|
state_root=STARTUP_STATE_ROOT,
|
||||||
state_root=STARTUP_STATE_ROOT,
|
randao_reveal=ZERO_HASH,
|
||||||
randao_reveal=ZERO_HASH,
|
candidate_pow_receipt_root=ZERO_HASH,
|
||||||
candidate_pow_receipt_root=ZERO_HASH,
|
proposer_signature=[0, 0],
|
||||||
proposer_signature=[0, 0]
|
|
||||||
),
|
|
||||||
'body': BeaconBlockBody(
|
'body': BeaconBlockBody(
|
||||||
proposer_slashings=[],
|
proposer_slashings=[],
|
||||||
casper_slashings=[],
|
casper_slashings=[],
|
||||||
|
|
Loading…
Reference in New Issue