Fix `initialize_beacon_state_from_eth1` previous_version

This commit is contained in:
Hsiao-Wei Wang 2021-09-29 01:10:09 +08:00
parent 31ba031b06
commit 2d169adfc7
No known key found for this signature in database
GPG Key ID: 1111A8A81778319E
1 changed files with 1 additions and 1 deletions

View File

@ -362,7 +362,7 @@ def initialize_beacon_state_from_eth1(eth1_block_hash: Bytes32,
eth1_timestamp: uint64,
deposits: Sequence[Deposit]) -> BeaconState:
fork = Fork(
previous_version=GENESIS_FORK_VERSION,
previous_version=ALTAIR_FORK_VERSION,
current_version=MERGE_FORK_VERSION, # [Modified in Merge]
epoch=GENESIS_EPOCH,
)