Skip to content

Commit 9ee4811

Browse files
committed
minor cleanup
1 parent 80f7058 commit 9ee4811

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

eth/beacon/state_machines/forks/serenity/operations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,6 @@ def process_attestations(state: BeaconState,
3939
for attestation in block.body.attestations
4040
)
4141
state = state.copy(
42-
latest_attestations=state.latest_attestations + additional_pending_attestations
42+
latest_attestations=state.latest_attestations + additional_pending_attestations,
4343
)
4444
return state

eth/beacon/state_machines/forks/serenity/validation.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111
ZERO_HASH32,
1212
)
1313

14+
from eth._utils import bls as bls
15+
from eth.beacon._utils.hash import (
16+
hash_eth2,
17+
)
1418

1519
from eth.beacon.enums import (
1620
SignatureDomain,
@@ -20,12 +24,6 @@
2024
get_block_root,
2125
get_domain,
2226
)
23-
from eth._utils import (
24-
bls
25-
)
26-
from eth.beacon._utils.hash import (
27-
hash_eth2,
28-
)
2927
from eth.beacon.types.states import BeaconState # noqa: F401
3028
from eth.beacon.types.attestations import Attestation # noqa: F401
3129
from eth.beacon.types.attestation_data import AttestationData # noqa: F401

tests/beacon/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464

6565
@pytest.fixture(scope="session")
6666
def privkeys():
67-
return [int.from_bytes(hash_eth2(str(i).encode('utf-8'))[:4], 'big') for i in range(50)]
67+
return [int.from_bytes(hash_eth2(str(i).encode('utf-8'))[:4], 'big') for i in range(100)]
6868

6969

7070
@pytest.fixture(scope="session")

0 commit comments

Comments
 (0)