MCPcopy
hub / github.com/ethereum/research / test_empty_block_transition

Function test_empty_block_transition

spec_pythonizer/sanity_check.py:194–203  ·  view source on GitHub ↗
(state)

Source from the content-addressed store, hash-verified

192
193# @timeit
194def test_empty_block_transition(state):
195 test_state = deepcopy(state)
196
197 block = construct_empty_block_for_next_slot(test_state)
198 state_transition(test_state, block)
199
200 assert len(test_state.eth1_data_votes) == len(state.eth1_data_votes) + 1
201 assert get_block_root(test_state, state.slot) == block.previous_block_root
202
203 return state, [block], test_state
204
205
206# @timeit

Callers

nothing calls this directly

Calls 3

state_transitionFunction · 0.90
deepcopyFunction · 0.85

Tested by

no test coverage detected