Skip to content

Commit 07df477

Browse files
committed
Move some changes to next PR
1 parent 64925be commit 07df477

File tree

1 file changed

+1
-60
lines changed

1 file changed

+1
-60
lines changed

tests/beacon/conftest.py

Lines changed: 1 addition & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
from eth.beacon.types.attestations import Attestation
3333
from eth.beacon.types.states import BeaconState
3434
from eth.beacon.types.crosslink_records import CrosslinkRecord
35-
from eth.beacon.types.deposits import Deposit
3635
from eth.beacon.types.deposit_data import DepositData
3736
from eth.beacon.types.deposit_input import DepositInput
3837
from eth.beacon.types.proposal_signed_data import ProposalSignedData
@@ -47,9 +46,7 @@
4746
)
4847

4948
from tests.beacon.helpers import (
50-
make_deposit_input,
5149
mock_validator_record,
52-
sign_proof_of_possession,
5350
)
5451

5552
DEFAULT_SHUFFLING_SEED = b'\00' * 32
@@ -484,22 +481,18 @@ def min_deposit():
484481
return SERENITY_CONFIG.MIN_DEPOSIT
485482

486483

487-
@pytest.fixture(scope="session")
488484
def max_deposit():
489485
return SERENITY_CONFIG.MAX_DEPOSIT
490486

491487

492-
@pytest.fixture(scope="session")
493488
def genesis_fork_version():
494489
return SERENITY_CONFIG.GENESIS_FORK_VERSION
495490

496491

497-
@pytest.fixture(scope="session")
498492
def genesis_slot():
499493
return SERENITY_CONFIG.GENESIS_SLOT
500494

501495

502-
@pytest.fixture(scope="session")
503496
def far_future_slot():
504497
return SERENITY_CONFIG.FAR_FUTURE_SLOT
505498

@@ -596,59 +589,7 @@ def max_exits():
596589

597590
#
598591
# genesis
599-
@pytest.fixture(scope="session")
600-
def initial_validator_deposits(privkeys,
601-
pubkeys,
602-
genesis_fork_version,
603-
genesis_slot,
604-
max_deposit):
605-
withdrawal_credentials = ZERO_HASH32
606-
randao_commitment = ZERO_HASH32
607-
custody_commitment = ZERO_HASH32
608-
fork_data = ForkData(
609-
pre_fork_version=genesis_fork_version,
610-
post_fork_version=genesis_fork_version,
611-
fork_slot=genesis_slot,
612-
)
613-
domain = get_domain(
614-
fork_data=fork_data,
615-
slot=genesis_slot,
616-
domain_type=SignatureDomain.DOMAIN_DEPOSIT,
617-
)
618-
validator_count = 10
619-
620-
return tuple(
621-
Deposit(
622-
merkle_branch=(
623-
b'\x11' * 32
624-
for j in range(10)
625-
),
626-
merkle_tree_index=i,
627-
deposit_data=DepositData(
628-
deposit_input=DepositInput(
629-
pubkey=pubkeys[i],
630-
withdrawal_credentials=withdrawal_credentials,
631-
randao_commitment=randao_commitment,
632-
custody_commitment=custody_commitment,
633-
proof_of_possession=sign_proof_of_possession(
634-
deposit_input=make_deposit_input(
635-
pubkey=pubkeys[i],
636-
withdrawal_credentials=withdrawal_credentials,
637-
randao_commitment=randao_commitment,
638-
custody_commitment=custody_commitment,
639-
),
640-
privkey=privkeys[i],
641-
domain=domain,
642-
),
643-
),
644-
amount=max_deposit,
645-
timestamp=0,
646-
),
647-
)
648-
for i in range(validator_count)
649-
)
650-
651-
592+
#
652593
@pytest.fixture
653594
def genesis_state(sample_beacon_state_params,
654595
genesis_validators,

0 commit comments

Comments
 (0)