mirror of
https://github.com/ethereum/consensus-specs.git
synced 2026-02-02 05:05:00 -05:00
Adds `create_light_client_bootstrap` and `create_light_client_update` functions as a reference implementation for serving light client data. This also enables a new test harness to verify that light client data gets applied to a `LightClientStore` as expected.
18 lines
517 B
Python
18 lines
517 B
Python
from eth2spec.test.helpers.constants import ALTAIR, BELLATRIX
|
|
from eth2spec.gen_helpers.gen_from_tests.gen import run_state_test_generators
|
|
|
|
|
|
if __name__ == "__main__":
|
|
altair_mods = {key: 'eth2spec.test.altair.sync_protocol.test_' + key for key in [
|
|
'light_client_sync',
|
|
'update_ranking',
|
|
]}
|
|
bellatrix_mods = altair_mods
|
|
|
|
all_mods = {
|
|
ALTAIR: altair_mods,
|
|
BELLATRIX: bellatrix_mods,
|
|
}
|
|
|
|
run_state_test_generators(runner_name="sync_protocol", all_mods=all_mods)
|