Skip to content
This repository has been archived by the owner on Jul 1, 2021. It is now read-only.

Implement process_deposits #447

Merged
merged 10 commits into from
Mar 28, 2019
Merged

Implement process_deposits #447

merged 10 commits into from
Mar 28, 2019

Conversation

hwwhww
Copy link
Contributor

@hwwhww hwwhww commented Mar 22, 2019

What was wrong?

Fix #238

How was it fixed?

  1. Rework process_deposit - generalize it to be used in processing genesis and deposit operation.
  2. Add process_deposits
  3. Sync related parameter names:
    • Use genesis_eth1_data in get_genesis_beacon_state
    • Deposit.branch -> Deposit.proof
  4. Update trinity/config.py - use create_mock_genesis for chain initialization

Cute Animal Picture

animals-2608662_640

hwwhww added 6 commits March 27, 2019 14:40
1. `get_initial_beacon_state` -> `get_genesis_beacon_state`
2. `initial_validator_deposits` -> `genesis_validator_deposits`
@hwwhww hwwhww force-pushed the process_deposits branch from c2ca4bd to 10d0d97 Compare March 27, 2019 06:42
@hwwhww hwwhww changed the title [WIP] Implement process_deposits Implement process_deposits Mar 27, 2019
@hwwhww hwwhww requested a review from ChihChengLiang March 27, 2019 07:09
@@ -5,7 +5,7 @@
not considered to be part of the tree.
"""

from typing import (
from typing import ( # noqa: F401
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why noqa this?

@@ -53,6 +52,7 @@
from eth2.beacon.types.attester_slashings import AttesterSlashing # noqa: F401
from eth2.beacon.types.blocks import BaseBeaconBlock # noqa: F401
from eth2.beacon.types.crosslink_records import CrosslinkRecord
from eth2.beacon.types.deposits import Deposit # noqa: F401
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These diffs look weird, Deposit is never used here. And Also these imports should not have noqa here.

@hwwhww hwwhww merged commit 20c23d3 into ethereum:master Mar 28, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement the rest of block operations
2 participants