remove unused imports

This commit is contained in:
Dustin Brody 2020-03-11 10:26:18 +01:00 committed by tersec
parent f20ebf5cd1
commit 0d3de00714
7 changed files with 15 additions and 12 deletions

View File

@ -1,8 +1,8 @@
import
os, net, strutils, strformat, parseutils,
chronicles, stew/[result, objects], eth/keys, eth/trie/db, eth/p2p/enode,
eth/p2p/discoveryv5/[enr, protocol, node, discovery_db, types],
libp2p/[multiaddress, multicodec, peer],
eth/p2p/discoveryv5/[enr, protocol, discovery_db, types],
libp2p/[multiaddress, peer],
libp2p/crypto/crypto as libp2pCrypto,
conf

View File

@ -1,7 +1,6 @@
import
chronos, web3, json, chronicles,
spec/[datatypes, digest, crypto, beaconstate, helpers],
./extras
spec/[datatypes, digest, crypto, beaconstate, helpers]
type
MainchainMonitor* = ref object

View File

@ -12,7 +12,7 @@ import
os, unittest,
# Beacon chain internals
../../beacon_chain/spec/[datatypes, state_transition_block, validator],
../../beacon_chain/[ssz, extras],
../../beacon_chain/ssz,
# Test utilities
../testutil,
./fixtures_utils,

View File

@ -1,5 +1,5 @@
# beacon_chain
# Copyright (c) 2018 Status Research & Development GmbH
# Copyright (c) 2018-2020 Status Research & Development GmbH
# Licensed and distributed under either of
# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT).
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
@ -8,12 +8,14 @@
{.used.}
import
options, unittest,
unittest,
chronicles,
stew/byteutils,
./testutil, ./testblockutil,
../beacon_chain/spec/[beaconstate, crypto, datatypes, digest, helpers, validator],
../beacon_chain/[beacon_node_types, attestation_pool, block_pool, extras, state_transition, ssz]
../beacon_chain/spec/[digest, validator],
../beacon_chain/[beacon_node_types, attestation_pool, block_pool, state_transition],
../beacon_chain/spec/datatypes,
../beacon_chain/ssz
when const_preset == "minimal": # Too much stack space used on mainnet
suite "Attestation pool processing" & preset():

View File

@ -11,7 +11,7 @@ import
options, sequtils, unittest, chronicles,
./testutil, ./testblockutil,
../beacon_chain/spec/[datatypes, digest, helpers, validator],
../beacon_chain/[beacon_node_types, block_pool, beacon_chain_db, extras, ssz]
../beacon_chain/[beacon_node_types, block_pool, ssz]
suite "BlockRef and helpers" & preset():
timedTest "isAncestorOf sanity" & preset():

View File

@ -1,3 +1,5 @@
{.used.}
import
net, unittest, testutil,
eth/keys, eth/p2p/enode, libp2p/multiaddress,

View File

@ -1,5 +1,5 @@
# beacon_chain
# Copyright (c) 2019 Status Research & Development GmbH
# Copyright (c) 2019-2020 Status Research & Development GmbH
# Licensed and distributed under either of
# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT).
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
@ -7,7 +7,7 @@
{.used.}
import options, hashes, unittest
import options, unittest
import ./testutil
import chronos
import ../beacon_chain/peer_pool, ../beacon_chain/sync_manager