Skip to content

beacon-chain.md Template

-- The Beacon Chain

Table of contents

Introduction

Notation

Custom types

Constants

[CATEGORY OF CONSTANTS]

Name Value
<CONSTANT_NAME> ```

Preset

[CATEGORY OF PRESETS]

Name Value
<PRESET_FIELD_NAME> <VALUE>

Configuration

[CATEGORY OF CONFIGURATIONS]

Name Value
<CONFIGURATION_FIELD_NAME> <VALUE>

Containers

[CATEGORY OF CONTAINERS]

CONTAINER_NAME

class CONTAINER_NAME(Container):
    FILED_NAME: SSZ_TYPE

Helper functions

[CATEGORY OF HELPERS]

<PYTHON HELPER FUNCTION>

Epoch processing

Block processing

Testing

Note: The function initialize_beacon_state_from_eth1 is modified for pure testing only.

1
2
3
4
5
6
def initialize_beacon_state_from_eth1(eth1_block_hash: Hash32,
                                      eth1_timestamp: uint64,
                                      deposits: Sequence[Deposit],
                                      execution_payload_header: ExecutionPayloadHeader=ExecutionPayloadHeader()
                                      ) -> BeaconState:
    ...