mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-02-02 22:03:37 +00:00
Apply suggestions from code review
Co-authored-by: Justin Traglia <95511699+jtraglia@users.noreply.github.com>
This commit is contained in:
parent
ab7cdb97e3
commit
166d5f36d4
@ -291,7 +291,7 @@ def get_random_deposits_requests(spec, state, rng, num_deposits=None):
|
||||
deposit_data_leaves,
|
||||
pubkeys[index],
|
||||
privkeys[index],
|
||||
rng.randint(spec.MIN_ACTIVATION_BALANCE, spec.MAX_EFFECTIVE_BALANCE_ELECTRA),
|
||||
rng.randint(spec.EFFECTIVE_BALANCE_INCREMENT, 2 * spec.MAX_EFFECTIVE_BALANCE_ELECTRA),
|
||||
withdrawal_credentials=withdrawal_credentials,
|
||||
signed=True,
|
||||
)
|
||||
@ -303,6 +303,7 @@ def get_random_deposits_requests(spec, state, rng, num_deposits=None):
|
||||
signature=deposit.data.signature,
|
||||
index=deposit.data.index,
|
||||
)
|
||||
|
||||
deposits_requests.append(deposit_request)
|
||||
|
||||
return deposits_requests
|
||||
@ -352,7 +353,6 @@ def get_random_consolidations_requests(spec, state, rng, num_consolidations=None
|
||||
active_validator_indices = spec.get_active_validator_indices(state, current_epoch)
|
||||
|
||||
for _ in range(num_consolidations):
|
||||
|
||||
source_address = rng.getrandbits(160).to_bytes(20, 'big')
|
||||
|
||||
source_index = rng.choice(active_validator_indices)
|
||||
|
Loading…
x
Reference in New Issue
Block a user