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

Commit

Permalink
Fix after rebasing
Browse files Browse the repository at this point in the history
Fix `BeaconChainFactory` after rebasing

Fix after new SSZ Hashable structure
  • Loading branch information
hwwhww committed Dec 18, 2019
1 parent ce81f30 commit d3e330c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion eth2/beacon/tools/builder/aggregator.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def get_aggregate_from_valid_committee_attestations(

assert len(attestations) > 0

return Attestation(
return Attestation.create(
data=attestations[0].data,
aggregation_bits=Bitfield(aggregation_bits),
signature=aggregate_signature,
Expand Down
4 changes: 1 addition & 3 deletions eth2/beacon/tools/factories.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,8 @@ def _create(
else:
num_validators = cls.num_validators

keymap = mk_keymap_of_size(num_validators)

if kwargs["genesis_state"] is None:
keymap = mk_keymap_of_size(cls.num_validators)
keymap = mk_keymap_of_size(num_validators)
genesis_state, genesis_block = create_mock_genesis(
config=cls.config,
pubkeys=tuple(keymap.keys()),
Expand Down
2 changes: 1 addition & 1 deletion trinity/components/eth2/beacon/validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ async def aggregate(
# 3. For each aggregate
# (it's possible with same CommitteeIndex and different AttesatationData)
for aggregate in aggregates:
aggregate_and_proof = AggregateAndProof(
aggregate_and_proof = AggregateAndProof.create(
aggregator_index=validator_index,
aggregate=aggregate,
selection_proof=selected_proofs[validator_index],
Expand Down

0 comments on commit d3e330c

Please sign in to comment.