Skip to content

Commit

Permalink
predefined indices which have the same pubkey
Browse files Browse the repository at this point in the history
  • Loading branch information
debjit-bw committed Jan 20, 2025
1 parent fe877aa commit 70be586
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import random
from eth2spec.test.helpers.block import (
build_empty_block_for_next_slot,
)
Expand Down Expand Up @@ -276,7 +275,7 @@ def test_deposit_transition__deposit_with_same_pubkey_different_withdrawal_crede
deposit_request_cnt=deposit_request_count)

# pick 2 indices among deposit requests to have the same pubkey as the deposit
indexes_with_same_pubkey = random.sample(range(deposit_count, deposit_request_count), 2)
indexes_with_same_pubkey = [1, 3]
for index in indexes_with_same_pubkey:
block.body.execution_requests.deposits[index].pubkey = block.body.deposits[0].data.pubkey

Expand Down

0 comments on commit 70be586

Please sign in to comment.