3bb30754d9
## Overview There are forked chains which get referenced by blocks and attestations on a network. Typically if these chains are very long, we stop looking up the chain and downvote the peer. In extreme circumstances, many peers are on many chains, the chains can be very deep and become time consuming performing lookups. This PR adds a cache to known failed chain lookups. This prevents us from starting a parent-lookup (or stopping one half way through) if we have attempted the chain lookup in the past.
44 lines
1.3 KiB
TOML
44 lines
1.3 KiB
TOML
[package]
|
|
name = "network"
|
|
version = "0.2.0"
|
|
authors = ["Sigma Prime <contact@sigmaprime.io>"]
|
|
edition = "2018"
|
|
|
|
[dev-dependencies]
|
|
sloggers = "1.0.0"
|
|
genesis = { path = "../genesis" }
|
|
lazy_static = "1.4.0"
|
|
matches = "0.1.8"
|
|
tempfile = "3.1.0"
|
|
exit-future = "0.2.0"
|
|
|
|
[dependencies]
|
|
beacon_chain = { path = "../beacon_chain" }
|
|
store = { path = "../store" }
|
|
eth2_libp2p = { path = "../eth2_libp2p" }
|
|
hashset_delay = { path = "../../common/hashset_delay" }
|
|
rest_types = { path = "../../common/rest_types" }
|
|
types = { path = "../../consensus/types" }
|
|
state_processing = { path = "../../consensus/state_processing" }
|
|
slot_clock = { path = "../../common/slot_clock" }
|
|
slog = { version = "2.5.2", features = ["max_level_trace"] }
|
|
hex = "0.4.2"
|
|
eth2_ssz = "0.1.2"
|
|
eth2_ssz_types = { path = "../../consensus/ssz_types" }
|
|
tree_hash = "0.1.0"
|
|
futures = "0.3.5"
|
|
error-chain = "0.12.2"
|
|
tokio = { version = "0.2.21", features = ["full"] }
|
|
parking_lot = "0.11.0"
|
|
smallvec = "1.4.1"
|
|
# TODO: Remove rand crate for mainnet
|
|
rand = "0.7.3"
|
|
fnv = "1.0.6"
|
|
rlp = "0.4.5"
|
|
lazy_static = "1.4.0"
|
|
lighthouse_metrics = { path = "../../common/lighthouse_metrics" }
|
|
environment = { path = "../../lighthouse/environment" }
|
|
itertools = "0.9.0"
|
|
num_cpus = "1.13.0"
|
|
lru_cache = { path = "../../common/lru_cache" }
|