(state)
| 220 | |
| 221 | # @timeit |
| 222 | def test_empty_epoch_transition(state): |
| 223 | test_state = deepcopy(state) |
| 224 | block = construct_empty_block_for_next_slot(test_state) |
| 225 | block.slot += spec.SLOTS_PER_EPOCH |
| 226 | |
| 227 | state_transition(test_state, block) |
| 228 | |
| 229 | assert test_state.slot == block.slot |
| 230 | for slot in range(state.slot, test_state.slot): |
| 231 | assert get_block_root(test_state, slot) == block.previous_block_root |
| 232 | |
| 233 | return state, [block], test_state |
| 234 | |
| 235 | |
| 236 | # @timeit |
nothing calls this directly
no test coverage detected