fix test-generators

This commit is contained in:
protolambda 2019-04-26 14:30:14 +08:00
parent 7a06df6766
commit 4c5a57d8ee
No known key found for this signature in database
GPG Key ID: EC89FDBB2B4C7623
2 changed files with 2 additions and 2 deletions

View File

@ -77,7 +77,7 @@ def build_deposit_for_index(initial_validator_count: int, index: int) -> Tuple[s
keys.pubkeys[index], keys.pubkeys[index],
keys.withdrawal_creds[index], keys.withdrawal_creds[index],
keys.privkeys[index], keys.privkeys[index],
spec.MAX_DEPOSIT_AMOUNT, spec.MAX_EFFECTIVE_BALANCE,
) )
state.latest_eth1_data.deposit_root = get_merkle_root(tuple(deposit_data_leaves)) state.latest_eth1_data.deposit_root = get_merkle_root(tuple(deposit_data_leaves))

View File

@ -26,7 +26,7 @@ def create_deposits(pubkeys: List[spec.BLSPubkey], withdrawal_cred: List[spec.By
spec.DepositData( spec.DepositData(
pubkey=pubkeys[i], pubkey=pubkeys[i],
withdrawal_credentials=spec.BLS_WITHDRAWAL_PREFIX_BYTE + withdrawal_cred[i][1:], withdrawal_credentials=spec.BLS_WITHDRAWAL_PREFIX_BYTE + withdrawal_cred[i][1:],
amount=spec.MAX_DEPOSIT_AMOUNT, amount=spec.MAX_EFFECTIVE_BALANCE,
proof_of_possession=proof_of_possession, proof_of_possession=proof_of_possession,
) for i in range(len(pubkeys)) ) for i in range(len(pubkeys))
] ]