mirror of
https://github.com/ethereum/consensus-specs.git
synced 2026-02-03 09:54:55 -05:00
clean up a few things from PR
This commit is contained in:
2
Makefile
2
Makefile
@@ -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/
|
||||
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user