Portal beacon: Remove unneeded and confusing (fork specific) imports (#2776)

This commit is contained in:
Kim De Mey 2024-10-24 20:31:17 +02:00 committed by GitHub
parent 0d4de335df
commit 3d31911f1d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
11 changed files with 3 additions and 17 deletions

View File

@ -20,7 +20,7 @@
{.push raises: [].}
import results, beacon_chain/spec/forks, beacon_chain/spec/datatypes/bellatrix
import results, beacon_chain/spec/forks
export results

View File

@ -15,12 +15,7 @@
{.push raises: [].}
import
stew/arrayops,
results,
beacon_chain/spec/forks,
beacon_chain/spec/datatypes/capella,
../../common/common_types
import stew/arrayops, results, beacon_chain/spec/forks, ../../common/common_types
export results

View File

@ -16,7 +16,6 @@ import
results,
ssz_serialization,
beacon_chain/db_limits,
beacon_chain/spec/datatypes/[phase0, altair, bellatrix],
beacon_chain/spec/forks,
beacon_chain/spec/forks_light_client,
./beacon_content,

View File

@ -11,7 +11,6 @@ import
chronicles,
beacon_chain/networking/network_metadata,
beacon_chain/spec/forks,
beacon_chain/spec/datatypes/altair,
beacon_chain/beacon_clock,
beacon_chain/conf

View File

@ -11,7 +11,6 @@ import
chronicles,
eth/p2p/discoveryv5/random2,
beacon_chain/gossip_processing/light_client_processor,
beacon_chain/spec/datatypes/altair,
beacon_chain/beacon_clock,
"."/[beacon_init_loader, beacon_network, beacon_light_client_manager]

View File

@ -14,8 +14,7 @@ import
stew/base10,
results,
eth/p2p/discoveryv5/random2,
beacon_chain/spec/datatypes/[phase0, altair, bellatrix, capella, deneb, electra],
beacon_chain/spec/[forks_light_client, digest],
beacon_chain/spec/[forks, forks_light_client, digest],
beacon_chain/beacon_clock,
beacon_chain/sync/light_client_sync_helpers,
"."/[beacon_network, beacon_content, beacon_db]

View File

@ -14,7 +14,6 @@ import
results,
beacon_chain/networking/network_metadata,
beacon_chain/spec/forks,
beacon_chain/spec/datatypes/altair,
../../network/beacon/beacon_content,
../../eth_data/yaml_utils,
"."/light_client_test_data

View File

@ -12,7 +12,6 @@
import
unittest2,
beacon_chain/spec/forks,
beacon_chain/spec/datatypes/bellatrix,
# Test helpers
beacon_chain /../ tests/testblockutil,
beacon_chain /../ tests/mocking/mock_genesis,

View File

@ -12,7 +12,6 @@
import
unittest2,
beacon_chain/spec/forks,
beacon_chain/spec/datatypes/capella,
# Test helpers
beacon_chain /../ tests/testblockutil,
beacon_chain /../ tests/mocking/mock_genesis,

View File

@ -12,7 +12,6 @@ import
chronos,
eth/p2p/discoveryv5/protocol as discv5_protocol,
beacon_chain/spec/forks,
beacon_chain/spec/datatypes/altair,
beacon_chain/spec/helpers,
../../network/wire/[portal_protocol, portal_stream],
../../network/beacon/[beacon_init_loader, beacon_light_client],

View File

@ -10,7 +10,6 @@ import
chronos,
eth/p2p/discoveryv5/protocol as discv5_protocol,
beacon_chain/spec/forks,
beacon_chain/spec/datatypes/altair,
# Test helpers
beacon_chain /../ tests/testblockutil,
beacon_chain /../ tests/mocking/mock_genesis,