@@ -80,3 +80,29 @@ def test_fork_random_misc_balances(spec, phases, state):
8080@with_meta_tags (ELECTRA_FORK_TEST_META_TAGS )
8181def test_fork_random_large_validator_set (spec , phases , state ):
8282 yield from run_fork_test (phases [ELECTRA ], state )
83+
84+
85+ @with_phases (phases = [DENEB ], other_phases = [ELECTRA ])
86+ @spec_test
87+ @with_state
88+ @with_meta_tags (ELECTRA_FORK_TEST_META_TAGS )
89+ def test_fork_pre_activation (spec , phases , state ):
90+ post_spec = phases [ELECTRA ]
91+ state .validators [0 ].activation_epoch = spec .FAR_FUTURE_EPOCH
92+ post_state = yield from run_fork_test (post_spec , state )
93+
94+ assert len (post_state .pending_balance_deposits ) > 0
95+
96+
97+ @with_phases (phases = [DENEB ], other_phases = [ELECTRA ])
98+ @spec_test
99+ @with_state
100+ @with_meta_tags (ELECTRA_FORK_TEST_META_TAGS )
101+ def test_fork_has_compounding_withdrawal_credential (spec , phases , state ):
102+ post_spec = phases [ELECTRA ]
103+ validator = state .validators [0 ]
104+ state .balances [0 ] = post_spec .MIN_ACTIVATION_BALANCE + 1
105+ validator .withdrawal_credentials = post_spec .COMPOUNDING_WITHDRAWAL_PREFIX + validator .withdrawal_credentials [1 :]
106+ post_state = yield from run_fork_test (post_spec , state )
107+
108+ assert len (post_state .pending_balance_deposits ) > 0
0 commit comments