9667dc2f03
## Issue Addressed Closes #1891 Closes #1784 ## Proposed Changes Implement checkpoint sync for Lighthouse, enabling it to start from a weak subjectivity checkpoint. ## Additional Info - [x] Return unavailable status for out-of-range blocks requested by peers (#2561) - [x] Implement sync daemon for fetching historical blocks (#2561) - [x] Verify chain hashes (either in `historical_blocks.rs` or the calling module) - [x] Consistency check for initial block + state - [x] Fetch the initial state and block from a beacon node HTTP endpoint - [x] Don't crash fetching beacon states by slot from the API - [x] Background service for state reconstruction, triggered by CLI flag or API call. Considered out of scope for this PR: - Drop the requirement to provide the `--checkpoint-block` (this would require some pretty heavy refactoring of block verification) Co-authored-by: Diva M <divma@protonmail.com>
71 lines
2.0 KiB
TOML
71 lines
2.0 KiB
TOML
[package]
|
|
name = "types"
|
|
version = "0.2.0"
|
|
authors = ["Paul Hauner <paul@paulhauner.com>", "Age Manning <Age@AgeManning.com>"]
|
|
edition = "2018"
|
|
|
|
[[bench]]
|
|
name = "benches"
|
|
harness = false
|
|
|
|
[dependencies]
|
|
bls = { path = "../../crypto/bls" }
|
|
compare_fields = { path = "../../common/compare_fields" }
|
|
compare_fields_derive = { path = "../../common/compare_fields_derive" }
|
|
eth2_interop_keypairs = { path = "../../common/eth2_interop_keypairs" }
|
|
ethereum-types = "0.11.0"
|
|
eth2_hashing = "0.2.0"
|
|
hex = "0.4.2"
|
|
int_to_bytes = { path = "../int_to_bytes" }
|
|
log = "0.4.11"
|
|
merkle_proof = { path = "../merkle_proof" }
|
|
rayon = "1.4.1"
|
|
rand = "0.7.3"
|
|
safe_arith = { path = "../safe_arith" }
|
|
serde = {version = "1.0.116" , features = ["rc"] }
|
|
serde_derive = "1.0.116"
|
|
slog = "2.5.2"
|
|
eth2_ssz = "0.3.0"
|
|
eth2_ssz_derive = "0.2.1"
|
|
eth2_ssz_types = "0.2.0"
|
|
swap_or_not_shuffle = { path = "../swap_or_not_shuffle" }
|
|
test_random_derive = { path = "../../common/test_random_derive" }
|
|
tree_hash = "0.3.0"
|
|
tree_hash_derive = "0.3.1"
|
|
rand_xorshift = "0.2.0"
|
|
cached_tree_hash = { path = "../cached_tree_hash" }
|
|
serde_yaml = "0.8.13"
|
|
tempfile = "3.1.0"
|
|
derivative = "2.1.1"
|
|
rusqlite = { version = "0.25.3", features = ["bundled"], optional = true }
|
|
arbitrary = { version = "0.4.6", features = ["derive"], optional = true }
|
|
eth2_serde_utils = "0.1.0"
|
|
regex = "1.3.9"
|
|
lazy_static = "1.4.0"
|
|
parking_lot = "0.11.1"
|
|
itertools = "0.10.0"
|
|
superstruct = "0.2.0"
|
|
|
|
[dev-dependencies]
|
|
serde_json = "1.0.58"
|
|
criterion = "0.3.3"
|
|
beacon_chain = { path = "../../beacon_node/beacon_chain" }
|
|
eth2_interop_keypairs = { path = "../../common/eth2_interop_keypairs" }
|
|
state_processing = { path = "../state_processing" }
|
|
|
|
[features]
|
|
default = ["sqlite", "legacy-arith"]
|
|
# Allow saturating arithmetic on slots and epochs. Enabled by default, but deprecated.
|
|
legacy-arith = []
|
|
sqlite = ["rusqlite"]
|
|
arbitrary-fuzz = [
|
|
"arbitrary",
|
|
"ethereum-types/arbitrary",
|
|
"bls/arbitrary",
|
|
"eth2_ssz/arbitrary",
|
|
"eth2_ssz_types/arbitrary",
|
|
"merkle_proof/arbitrary",
|
|
"swap_or_not_shuffle/arbitrary",
|
|
"tree_hash/arbitrary",
|
|
]
|