Merge branch 'dev' into phase1-tests

This commit is contained in:
Danny Ryan 2020-02-22 12:08:27 -06:00
commit 721f605a91
No known key found for this signature in database
GPG Key ID: 2765A792E42CE07A
2 changed files with 0 additions and 5 deletions

View File

@ -317,13 +317,11 @@ def update_latest_messages(store: Store, attesting_indices: Sequence[ValidatorIn
```python ```python
def on_tick(store: Store, time: uint64) -> None: def on_tick(store: Store, time: uint64) -> None:
previous_slot = get_current_slot(store) previous_slot = get_current_slot(store)
print(previous_slot)
# update store time # update store time
store.time = time store.time = time
current_slot = get_current_slot(store) current_slot = get_current_slot(store)
print(current_slot)
# Not a new epoch, return # Not a new epoch, return
if not (current_slot > previous_slot and compute_slots_since_epoch_start(current_slot) == 0): if not (current_slot > previous_slot and compute_slots_since_epoch_start(current_slot) == 0):
return return

View File

@ -544,9 +544,6 @@ def is_valid_indexed_attestation(state: BeaconState, indexed_attestation: Indexe
AttestationCustodyBitWrapper(hash_tree_root(attestation.data), i, cbit), domain)) AttestationCustodyBitWrapper(hash_tree_root(attestation.data), i, cbit), domain))
else: else:
assert not cbit assert not cbit
print(all_pubkeys)
print(all_signing_roots)
print(attestation.signature)
return bls.AggregateVerify(zip(all_pubkeys, all_signing_roots), signature=attestation.signature) return bls.AggregateVerify(zip(all_pubkeys, all_signing_roots), signature=attestation.signature)
``` ```