clean up a few things from PR

This commit is contained in:
Danny Ryan
2019-04-05 19:39:03 +11:00
parent 3e6dc59ec0
commit dc325f7682
2 changed files with 3 additions and 3 deletions

View File

@@ -16,7 +16,7 @@ clean:
# runs a limited set of tests against a minimal config
# run pytest with `-m` option to full suite
test:
test: clean $(BUILD_DIR)/phase0
pytest -m minimal_config tests/

View File

@@ -1860,6 +1860,8 @@ def process_crosslinks(state: BeaconState) -> None:
previous_epoch = max(current_epoch - 1, GENESIS_EPOCH)
next_epoch = current_epoch + 1
state.previous_crosslinks = [crosslink for crosslink in state.current_crosslinks]
for slot in range(get_epoch_start_slot(previous_epoch), get_epoch_start_slot(next_epoch)):
for crosslink_committee, shard in get_crosslink_committees_at_slot(state, slot):
winning_root, participants = get_winning_root_and_participants(state, slot, shard)
@@ -1870,8 +1872,6 @@ def process_crosslinks(state: BeaconState) -> None:
epoch=min(slot_to_epoch(slot), state.current_crosslinks[shard].epoch + MAX_CROSSLINK_EPOCHS),
crosslink_data_root=winning_root,
)
state.previous_crosslinks = state.current_crosslinks
```
#### Eth1 data